[Python-checkins] r80764 - in python/branches/py3k: Lib/gzip.py

mark.dickinson python-checkins at python.org
Tue May 4 20:47:04 CEST 2010


Author: mark.dickinson
Date: Tue May  4 20:47:04 2010
New Revision: 80764

Log:
Merged revisions 80762 via svnmerge from 
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r80762 | mark.dickinson | 2010-05-04 19:45:27 +0100 (Tue, 04 May 2010) | 3 lines
  
  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/branches/py3k/   (props changed)
   python/branches/py3k/Lib/gzip.py

Modified: python/branches/py3k/Lib/gzip.py
==============================================================================
--- python/branches/py3k/Lib/gzip.py	(original)
+++ python/branches/py3k/Lib/gzip.py	Tue May  4 20:47:04 2010
@@ -380,7 +380,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