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