From c0379437fcacb641ee6afe7183a8351228ee1d7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristj=C3=A1n=20Valur=20J=C3=B3nsson?= Date: Sun, 19 Jul 2009 22:35:44 +0000 Subject: http://bugs.python.org/issue6499 gzip.GzipFile may not exist as a parent class --- Lib/xmlrpclib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. """ -- cgit v0.12