From: Brett Cannon Date: Thu, 4 Dec 2003 19:28:06 +0000 (+0000) Subject: Fix error in exception message. X-Git-Tag: v2.4a1~1152 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=edfb30258ea262cb67c1e48e4b122bf7e1b8b674;p=thirdparty%2FPython%2Fcpython.git Fix error in exception message. --- diff --git a/Lib/gzip.py b/Lib/gzip.py index 761d94157ba6..a5d4087f8eb2 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 ''