diff --git a/Lib/gzip.py b/Lib/gzip.py index b09d0186c3d..fc21ad4475d 100644 --- a/Lib/gzip.py +++ b/Lib/gzip.py @@ -333,7 +333,7 @@ class GzipFile: if self.mode == WRITE: # Ensure the compressor's buffer is flushed self.fileobj.write(self.compress.flush(zlib_mode)) - self.fileobj.flush() + self.fileobj.flush() def fileno(self): """Invoke the underlying file object's fileno() method.