Skip to content

Commit

Permalink
Merge pull request #1 from aivarannamaa/aivarannamaa-flushfile-getattr
Browse files Browse the repository at this point in the history
Fix method delegation in _flushfile
  • Loading branch information
aivarannamaa authored Sep 23, 2023
2 parents 464f237 + b8581fe commit c5b093f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cs50/cs50.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def __init__(self, f):
self.f = f

def __getattr__(self, name):
return object.__getattribute__(self.f, name)
return getattr(self.f, name)

def write(self, x):
self.f.write(x)
Expand Down

0 comments on commit c5b093f

Please sign in to comment.