[Python-checkins] CVS: python/dist/src/Lib gzip.py,1.23,1.24
A.M. Kuchling
akuchling@users.sourceforge.net
Tue, 20 Mar 2001 07:51:16 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv9226
Modified Files:
gzip.py
Log Message:
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)
Index: gzip.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/gzip.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -r1.23 -r1.24
*** gzip.py 2001/02/21 10:39:35 1.23
--- gzip.py 2001/03/20 15:51:14 1.24
***************
*** 268,277 ****
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
--- 268,271 ----