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.
........
This commit is contained in:
Mark Dickinson 2010-05-04 18:46:24 +00:00
parent 1cdfa5f5bc
commit 2dd131d535
1 changed files with 1 additions and 1 deletions

View File

@ -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.