Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 44f5f8f

Browse files
committed
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)
1 parent d3f193f commit 44f5f8f

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

Lib/gzip.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -267,12 +267,6 @@ def __del__(self):
267267
def flush(self):
268268
self.fileobj.flush()
269269

270-
def seek(self):
271-
raise IOError, 'Random access not allowed in gzip files'
272-
273-
def tell(self):
274-
raise IOError, 'I won\'t tell() you for gzip files'
275-
276270
def isatty(self):
277271
return 0
278272

0 commit comments

Comments
 (0)