summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorKristján Valur Jónsson <kristjan@ccpgames.com>2009-07-19 22:35:44 (GMT)
committerKristján Valur Jónsson <kristjan@ccpgames.com>2009-07-19 22:35:44 (GMT)
commitc0379437fcacb641ee6afe7183a8351228ee1d7a (patch)
tree2c29b02b5e677be8d7ae6a106e60052820ec7405 /Lib
parent6d755900f6735a6c66b5e8455a0127ac99caf2a6 (diff)
downloadcpython-c0379437fcacb641ee6afe7183a8351228ee1d7a.zip
cpython-c0379437fcacb641ee6afe7183a8351228ee1d7a.tar.gz
cpython-c0379437fcacb641ee6afe7183a8351228ee1d7a.tar.bz2
http://bugs.python.org/issue6499
gzip.GzipFile may not exist as a parent class
Diffstat (limited to 'Lib')
-rw-r--r--Lib/xmlrpclib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/xmlrpclib.py b/Lib/xmlrpclib.py
index 57d0055..8ab7dca 100644
--- a/Lib/xmlrpclib.py
+++ b/Lib/xmlrpclib.py
@@ -1192,7 +1192,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.
"""