mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Fix error in exception message.
This commit is contained in:
parent
9da1efb5ae
commit
edfb30258e
1 changed files with 1 additions and 1 deletions
|
@ -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 ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue