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:
Andrew M. Kuchling 2001-03-20 15:51:14 +00:00
parent d3f193fe9d
commit 44f5f8fb26

View file

@ -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