mirror of
https://github.com/python/cpython.git
synced 2025-10-18 12:48:57 +00:00
merging revision 74100 from trunk:
http://bugs.python.org/issue6499 gzip.GzipFile may not exist as a parent class
This commit is contained in:
parent
aefde242fd
commit
9ab0731f76
1 changed files with 1 additions and 1 deletions
|
@ -1076,7 +1076,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.
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue