diff options
author | Fred Drake <fdrake@acm.org> | 2001-10-13 18:33:51 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-10-13 18:33:51 (GMT) |
commit | 95b0eb7cb3e6ccfefead542320b9a5fd659421d2 (patch) | |
tree | 8855a9e2ca1789c7e6b9ffe05b84dc994d772cd1 | |
parent | 16623fe3e606efdedead8ccccaf7ef583e1be97f (diff) | |
download | cpython-95b0eb7cb3e6ccfefead542320b9a5fd659421d2.zip cpython-95b0eb7cb3e6ccfefead542320b9a5fd659421d2.tar.gz cpython-95b0eb7cb3e6ccfefead542320b9a5fd659421d2.tar.bz2 |
"f" should be "self"; reported by Neal Norwitz.
-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 db1c8a6..7f56153 100644 --- a/Lib/gzip.py +++ b/Lib/gzip.py @@ -289,7 +289,7 @@ class GzipFile: raise IOError('Negative seek in write mode') count = offset - self.offset for i in range(count/1024): - f.write(1024*'\0') + self.write(1024*'\0') self.write((count%1024)*'\0') elif self.mode == READ: if offset < self.offset: |