commit | 95b0eb7cb3e6ccfefead542320b9a5fd659421d2 | [log] [tgz] |
---|---|---|
author | Fred Drake <fdrake@acm.org> | Sat Oct 13 18:33:51 2001 +0000 |
committer | Fred Drake <fdrake@acm.org> | Sat Oct 13 18:33:51 2001 +0000 |
tree | 8855a9e2ca1789c7e6b9ffe05b84dc994d772cd1 | |
parent | 16623fe3e606efdedead8ccccaf7ef583e1be97f [diff] [blame] |
"f" should be "self"; reported by Neal Norwitz.
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 @@ 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: