diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2010-05-04 18:45:27 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2010-05-04 18:45:27 (GMT) |
commit | 3b0b4ff19e4d1d84ca7029a48cad27d64d9af7ab (patch) | |
tree | 36248e68cbfa06843f05832b7b98f6ef12b0de46 /Lib | |
parent | 06a7e2069a94420ee1dcdb382817c034e925e4e0 (diff) | |
download | cpython-3b0b4ff19e4d1d84ca7029a48cad27d64d9af7ab.zip cpython-3b0b4ff19e4d1d84ca7029a48cad27d64d9af7ab.tar.gz cpython-3b0b4ff19e4d1d84ca7029a48cad27d64d9af7ab.tar.bz2 |
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.
Diffstat (limited to 'Lib')
-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 13f2ca2..5fc7639 100644 --- a/Lib/gzip.py +++ b/Lib/gzip.py @@ -362,7 +362,7 @@ class GzipFile(io.BufferedIOBase): 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. |