diff options
author | Tim Peters <tim.peters@gmail.com> | 2002-04-16 01:38:40 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2002-04-16 01:38:40 (GMT) |
commit | 863ac44b74cd66f7d289748816d65c65808c149b (patch) | |
tree | 8536f8a72110b9996cb9e6746b6bb4cf3cb73733 /Lib/gzip.py | |
parent | c86c1b88f96ec48e5502b9b8ba5cc833f57ce476 (diff) | |
download | cpython-863ac44b74cd66f7d289748816d65c65808c149b.zip cpython-863ac44b74cd66f7d289748816d65c65808c149b.tar.gz cpython-863ac44b74cd66f7d289748816d65c65808c149b.tar.bz2 |
Whitespace normalization.
Diffstat (limited to 'Lib/gzip.py')
-rw-r--r-- | Lib/gzip.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/gzip.py b/Lib/gzip.py index 793a3b5..b2bbeda 100644 --- a/Lib/gzip.py +++ b/Lib/gzip.py @@ -136,7 +136,7 @@ class GzipFile: if self.mode != WRITE: import errno raise IOError(errno.EBADF, "write() on read-only GzipFile object") - + if self.fileobj is None: raise ValueError, "write() on closed GzipFile object" if len(data) > 0: @@ -149,7 +149,7 @@ class GzipFile: if self.mode != READ: import errno raise IOError(errno.EBADF, "write() on read-only GzipFile object") - + if self.extrasize <= 0 and self.fileobj is None: return '' |