From: Andrew M. Kuchling Date: Tue, 20 Mar 2001 15:51:14 +0000 (+0000) Subject: Bug #409419: delete seek() and tell() methods, so callers can use getattr() X-Git-Tag: v2.1b2~133 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=44f5f8fb26185b211d50fd9501ba42446505a8d7;p=python 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) --- diff --git a/Lib/gzip.py b/Lib/gzip.py index 6cb90ac6f4..79ca2050d2 100644 --- a/Lib/gzip.py +++ b/Lib/gzip.py @@ -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