diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2010-05-04 18:46:24 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2010-05-04 18:46:24 (GMT) |
commit | 2dd131d5358d155dbc7bea40d6c993b9530f98f3 (patch) | |
tree | cf7a87018a96bbe4aa0d5ebfc24796b8e1faa1ee | |
parent | 1cdfa5f5bc24316373a330bec7ec50a126aefad7 (diff) | |
download | cpython-2dd131d5358d155dbc7bea40d6c993b9530f98f3.zip cpython-2dd131d5358d155dbc7bea40d6c993b9530f98f3.tar.gz cpython-2dd131d5358d155dbc7bea40d6c993b9530f98f3.tar.bz2 |
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.
........
-rw-r--r-- | Lib/gzip.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/gzip.py b/Lib/gzip.py index b09d018..fc21ad4 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. |