mirror of
https://github.com/python/cpython.git
synced 2025-11-26 21:33:10 +00:00
Whitespace normalization.
This commit is contained in:
parent
c7ca3ffba3
commit
ab9ba27dc0
12 changed files with 54 additions and 55 deletions
|
|
@ -277,7 +277,7 @@ class GzipFile:
|
|||
|
||||
def rewind(self):
|
||||
'''Return the uncompressed stream file position indicator to the
|
||||
beginning of the file'''
|
||||
beginning of the file'''
|
||||
if self.mode != READ:
|
||||
raise IOError("Can't rewind in write mode")
|
||||
self.fileobj.seek(0)
|
||||
|
|
@ -291,7 +291,7 @@ class GzipFile:
|
|||
if offset < self.offset:
|
||||
raise IOError('Negative seek in write mode')
|
||||
count = offset - self.offset
|
||||
for i in range(count/1024):
|
||||
for i in range(count/1024):
|
||||
f.write(1024*'\0')
|
||||
self.write((count%1024)*'\0')
|
||||
elif self.mode == READ:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue