summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-10-13 18:33:51 (GMT)
committerFred Drake <fdrake@acm.org>2001-10-13 18:33:51 (GMT)
commit95b0eb7cb3e6ccfefead542320b9a5fd659421d2 (patch)
tree8855a9e2ca1789c7e6b9ffe05b84dc994d772cd1
parent16623fe3e606efdedead8ccccaf7ef583e1be97f (diff)
downloadcpython-95b0eb7cb3e6ccfefead542320b9a5fd659421d2.zip
cpython-95b0eb7cb3e6ccfefead542320b9a5fd659421d2.tar.gz
cpython-95b0eb7cb3e6ccfefead542320b9a5fd659421d2.tar.bz2
"f" should be "self"; reported by Neal Norwitz.
-rw-r--r--Lib/gzip.py2
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: