From 95b0eb7cb3e6ccfefead542320b9a5fd659421d2 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Sat, 13 Oct 2001 18:33:51 +0000 Subject: [PATCH] "f" should be "self"; reported by Neal Norwitz. --- Lib/gzip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/gzip.py b/Lib/gzip.py index db1c8a6473..7f561532ad 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: -- 2.40.0