"f" should be "self"; reported by Neal Norwitz.

This commit is contained in:
Fred Drake 2001-10-13 18:33:51 +00:00
parent 16623fe3e6
commit 95b0eb7cb3
1 changed files with 1 additions and 1 deletions

View File

@ -289,7 +289,7 @@ class GzipFile:
raise IOError('Negative seek in write mode') raise IOError('Negative seek in write mode')
count = offset - self.offset count = offset - self.offset
for i in range(count/1024): for i in range(count/1024):
f.write(1024*'\0') self.write(1024*'\0')
self.write((count%1024)*'\0') self.write((count%1024)*'\0')
elif self.mode == READ: elif self.mode == READ:
if offset < self.offset: if offset < self.offset: