Kaydet (Commit) 44f5f8fb authored tarafından Andrew M. Kuchling's avatar Andrew M. Kuchling

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)
üst d3f193fe
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment