From 9ab0731f76cf685bb9d8cfa41951a0fe1ab8ab43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristj=C3=A1n=20Valur=20J=C3=B3nsson?= Date: Sun, 19 Jul 2009 22:38:38 +0000 Subject: merging revision 74100 from trunk: http://bugs.python.org/issue6499 gzip.GzipFile may not exist as a parent class --- Lib/xmlrpc/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/xmlrpc/client.py b/Lib/xmlrpc/client.py index fc32925..549006b 100644 --- a/Lib/xmlrpc/client.py +++ b/Lib/xmlrpc/client.py @@ -1076,7 +1076,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