mirror of https://github.com/python/cpython
"f" should be "self"; reported by Neal Norwitz.
This commit is contained in:
parent
16623fe3e6
commit
95b0eb7cb3
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue