diff options
Diffstat (limited to 'Lib/gzip.py')
-rw-r--r-- | Lib/gzip.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/gzip.py b/Lib/gzip.py index 9df8e5d..1985044 100644 --- a/Lib/gzip.py +++ b/Lib/gzip.py @@ -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: |