From: Fred Drake Date: Sat, 13 Oct 2001 18:33:51 +0000 (+0000) Subject: "f" should be "self"; reported by Neal Norwitz. X-Git-Tag: v2.2.1c1~1296 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=95b0eb7cb3e6ccfefead542320b9a5fd659421d2;p=thirdparty%2FPython%2Fcpython.git "f" should be "self"; reported by Neal Norwitz. --- diff --git a/Lib/gzip.py b/Lib/gzip.py index db1c8a6473a9..7f561532add5 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: