summaryrefslogtreecommitdiffstats
path: root/Lib/gzip.py
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2001-03-20 15:51:14 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2001-03-20 15:51:14 (GMT)
commit44f5f8fb26185b211d50fd9501ba42446505a8d7 (patch)
treeee811b61d288819200613f55a11ea118bcef6e0e /Lib/gzip.py
parentd3f193fe9d1edd99b69b829edb8e8e981c0d0fa6 (diff)
downloadcpython-44f5f8fb26185b211d50fd9501ba42446505a8d7.zip
cpython-44f5f8fb26185b211d50fd9501ba42446505a8d7.tar.gz
cpython-44f5f8fb26185b211d50fd9501ba42446505a8d7.tar.bz2
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)
Diffstat (limited to 'Lib/gzip.py')
-rw-r--r--Lib/gzip.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/Lib/gzip.py b/Lib/gzip.py
index 6cb90ac6..79ca205 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