mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Bug #409419: delete seek() and tell() methods, so callers can use getattr()
to check for them (instead of calling them and then ignoring an IOError)
This commit is contained in:
parent
d3f193fe9d
commit
44f5f8fb26
1 changed files with 0 additions and 6 deletions
|
@ -267,12 +267,6 @@ class GzipFile:
|
|||
def flush(self):
|
||||
self.fileobj.flush()
|
||||
|
||||
def seek(self):
|
||||
raise IOError, 'Random access not allowed in gzip files'
|
||||
|
||||
def tell(self):
|
||||
raise IOError, 'I won\'t tell() you for gzip files'
|
||||
|
||||
def isatty(self):
|
||||
return 0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue