From: Kristján Valur Jónsson Date: Sun, 19 Jul 2009 22:35:44 +0000 (+0000) Subject: http://bugs.python.org/issue6499 X-Git-Tag: v2.7a1~738 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0379437fcacb641ee6afe7183a8351228ee1d7a;p=thirdparty%2FPython%2Fcpython.git http://bugs.python.org/issue6499 gzip.GzipFile may not exist as a parent class --- diff --git a/Lib/xmlrpclib.py b/Lib/xmlrpclib.py index 57d0055e4072..8ab7dca0c655 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. """