]> granicus.if.org Git - python/commitdiff
Bug #409419: delete seek() and tell() methods, so callers can use getattr()
authorAndrew M. Kuchling <amk@amk.ca>
Tue, 20 Mar 2001 15:51:14 +0000 (15:51 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Tue, 20 Mar 2001 15:51:14 +0000 (15:51 +0000)
    to check for them (instead of calling them and then ignoring an
    IOError)

Lib/gzip.py

index 6cb90ac6f4e28264f7193e5528e25607013c07c9..79ca2050d2e77ee68c761081491bf791a5d6aefb 100644 (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