[Python-checkins] r74101 - python/branches/py3k/Lib/xmlrpc/client.py
kristjan.jonsson
python-checkins at python.org
Mon Jul 20 00:38:38 CEST 2009
Author: kristjan.jonsson
Date: Mon Jul 20 00:38:38 2009
New Revision: 74101
Log:
merging revision 74100 from trunk:
http://bugs.python.org/issue6499
gzip.GzipFile may not exist as a parent class
Modified:
python/branches/py3k/Lib/xmlrpc/client.py
Modified: python/branches/py3k/Lib/xmlrpc/client.py
==============================================================================
--- python/branches/py3k/Lib/xmlrpc/client.py (original)
+++ python/branches/py3k/Lib/xmlrpc/client.py Mon Jul 20 00:38:38 2009
@@ -1076,7 +1076,7 @@
# @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.
"""
More information about the Python-checkins
mailing list