Commit edfb3025 authored by Brett Cannon's avatar Brett Cannon

Fix error in exception message.

parent 9da1efb5
......@@ -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 ''
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment