diff --git a/Lib/gzip.py b/Lib/gzip.py index 0fa4ddfdb84..6a9fbc2c1ad 100644 --- a/Lib/gzip.py +++ b/Lib/gzip.py @@ -363,7 +363,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.