Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 95b0eb7

Browse files
committed
"f" should be "self"; reported by Neal Norwitz.
1 parent 16623fe commit 95b0eb7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/gzip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def seek(self, offset):
289289
raise IOError('Negative seek in write mode')
290290
count = offset - self.offset
291291
for i in range(count/1024):
292-
f.write(1024*'\0')
292+
self.write(1024*'\0')
293293
self.write((count%1024)*'\0')
294294
elif self.mode == READ:
295295
if offset < self.offset:

0 commit comments

Comments
 (0)