Skip to content

Commit c5b093f

Browse files
authoredSep 23, 2023
Merge pull request #1 from aivarannamaa/aivarannamaa-flushfile-getattr
Fix method delegation in _flushfile
2 parents 464f237 + b8581fe commit c5b093f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/cs50/cs50.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def __init__(self, f):
4949
self.f = f
5050

5151
def __getattr__(self, name):
52-
return object.__getattribute__(self.f, name)
52+
return getattr(self.f, name)
5353

5454
def write(self, x):
5555
self.f.write(x)

0 commit comments

Comments
 (0)
Please sign in to comment.