]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
http://bugs.python.org/issue6499
authorKristján Valur Jónsson <kristjan@ccpgames.com>
Sun, 19 Jul 2009 22:35:44 +0000 (22:35 +0000)
committerKristján Valur Jónsson <kristjan@ccpgames.com>
Sun, 19 Jul 2009 22:35:44 +0000 (22:35 +0000)
gzip.GzipFile may not exist as a parent class

Lib/xmlrpclib.py

index 57d0055e4072cac45bfbf3e2b35e85a361e0a32d..8ab7dca0c655cd2b81c0d341e62358c05bdb5538 100644 (file)
@@ -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.
     """