http://bugs.python.org/issue6499

gzip.GzipFile may not exist as a parent class
parent 6d755900
...@@ -1192,7 +1192,7 @@ def gzip_decode(data): ...@@ -1192,7 +1192,7 @@ def gzip_decode(data):
# @param response A stream supporting a read() method # @param response A stream supporting a read() method
# @return a file-like object that the decoded data can be read() from # @return a file-like object that the decoded data can be read() from
class GzipDecodedResponse(gzip.GzipFile): class GzipDecodedResponse(gzip.GzipFile if gzip else object):
"""a file-like object to decode a response encoded with the gzip """a file-like object to decode a response encoded with the gzip
method, as described in RFC 1952. method, as described in RFC 1952.
""" """
......
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