From 44f5f8fb26185b211d50fd9501ba42446505a8d7 Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Tue, 20 Mar 2001 15:51:14 +0000 Subject: [PATCH] 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) --- Lib/gzip.py | 6 ------ 1 file changed, 6 deletions(-) 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 -- 2.50.0