[Python-checkins] r80762 - python/trunk/Lib/gzip.py
mark.dickinson
python-checkins at python.org
Tue May 4 20:45:27 CEST 2010
Author: mark.dickinson
Date: Tue May 4 20:45:27 2010
New Revision: 80762
Log:
Fix test_gzip failure on OS X. The failure was a result of trying to fflush
a file that wasn't open for writing. Patch by Antoine Pitrou.
Modified:
python/trunk/Lib/gzip.py
Modified: python/trunk/Lib/gzip.py
==============================================================================
--- python/trunk/Lib/gzip.py (original)
+++ python/trunk/Lib/gzip.py Tue May 4 20:45:27 2010
@@ -362,7 +362,7 @@
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.
More information about the Python-checkins
mailing list