diff options
author | Brett Cannon <bcannon@gmail.com> | 2003-12-04 19:28:06 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2003-12-04 19:28:06 (GMT) |
commit | edfb30258ea262cb67c1e48e4b122bf7e1b8b674 (patch) | |
tree | 50162b197f6edb281d39abd6786b8484547e196e /Lib/gzip.py | |
parent | 9da1efb5aead6795e63ea0660308a674f9ef4f37 (diff) | |
download | cpython-edfb30258ea262cb67c1e48e4b122bf7e1b8b674.zip cpython-edfb30258ea262cb67c1e48e4b122bf7e1b8b674.tar.gz cpython-edfb30258ea262cb67c1e48e4b122bf7e1b8b674.tar.bz2 |
Fix error in exception message.
Diffstat (limited to 'Lib/gzip.py')
-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 761d941..a5d4087 100644 --- a/Lib/gzip.py +++ b/Lib/gzip.py @@ -205,7 +205,7 @@ class GzipFile: def read(self, size=-1): if self.mode != READ: import errno - raise IOError(errno.EBADF, "write() on read-only GzipFile object") + raise IOError(errno.EBADF, "read() on write-only GzipFile object") if self.extrasize <= 0 and self.fileobj is None: return '' |