Kaydet (Commit) 9ab0731f authored tarafından Kristján Valur Jónsson's avatar Kristján Valur Jónsson

merging revision 74100 from trunk:

http://bugs.python.org/issue6499
gzip.GzipFile may not exist as a parent class
üst aefde242
......@@ -1076,7 +1076,7 @@ def gzip_decode(data):
# @param response A stream supporting a read() method
# @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
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