diff options
author | Georg Brandl <georg@python.org> | 2010-11-20 11:25:01 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-11-20 11:25:01 (GMT) |
commit | 9f1c1dcde30305c4ed68b296ca96028ea7123152 (patch) | |
tree | 257660ad8845b41785a73e9642bc8ec855a794df /Lib/gzip.py | |
parent | 4ccc137affe960741c3f6758ce00277d15409665 (diff) | |
download | cpython-9f1c1dcde30305c4ed68b296ca96028ea7123152.zip cpython-9f1c1dcde30305c4ed68b296ca96028ea7123152.tar.gz cpython-9f1c1dcde30305c4ed68b296ca96028ea7123152.tar.bz2 |
#10465: fix broken delegation in __getattr__ of _PaddedFile.
Diffstat (limited to 'Lib/gzip.py')
-rw-r--r-- | Lib/gzip.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ class _PaddedFile: return self.file.seek(offset, whence) def __getattr__(self, name): - return getattr(name, self.file) + return getattr(self.file, name) class GzipFile(io.BufferedIOBase): |