commit | 44f5f8fb26185b211d50fd9501ba42446505a8d7 | [log] [tgz] |
---|---|---|
author | Andrew M. Kuchling <amk@amk.ca> | Tue Mar 20 15:51:14 2001 +0000 |
committer | Andrew M. Kuchling <amk@amk.ca> | Tue Mar 20 15:51:14 2001 +0000 |
tree | ee811b61d288819200613f55a11ea118bcef6e0e | |
parent | d3f193fe9d1edd99b69b829edb8e8e981c0d0fa6 [diff] |
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 6cb90ac..79ca205 100644 --- a/Lib/gzip.py +++ b/Lib/gzip.py
@@ -267,12 +267,6 @@ 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