commit | 9f1c1dcde30305c4ed68b296ca96028ea7123152 | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Sat Nov 20 11:25:01 2010 +0000 |
committer | Georg Brandl <georg@python.org> | Sat Nov 20 11:25:01 2010 +0000 |
tree | 257660ad8845b41785a73e9642bc8ec855a794df | |
parent | 4ccc137affe960741c3f6758ce00277d15409665 [diff] [blame] |
#10465: fix broken delegation in __getattr__ of _PaddedFile.
diff --git a/Lib/gzip.py b/Lib/gzip.py index 21b1404..ba2149e 100644 --- a/Lib/gzip.py +++ b/Lib/gzip.py
@@ -98,7 +98,7 @@ return self.file.seek(offset, whence) def __getattr__(self, name): - return getattr(name, self.file) + return getattr(self.file, name) class GzipFile(io.BufferedIOBase):