]> granicus.if.org Git - python/commitdiff
"f" should be "self"; reported by Neal Norwitz.
authorFred Drake <fdrake@acm.org>
Sat, 13 Oct 2001 18:33:51 +0000 (18:33 +0000)
committerFred Drake <fdrake@acm.org>
Sat, 13 Oct 2001 18:33:51 +0000 (18:33 +0000)
Lib/gzip.py

index db1c8a6473a99c4d03e6003dd8c69719edb9bc29..7f561532add527780f143e2b1d30a7cc1f48220f 100644 (file)
@@ -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: