[Python-checkins] r74100 - python/trunk/Lib/xmlrpclib.py

kristjan.jonsson python-checkins at python.org
Mon Jul 20 00:35:45 CEST 2009


Author: kristjan.jonsson
Date: Mon Jul 20 00:35:44 2009
New Revision: 74100
Log:
http://bugs.python.org/issue6499
gzip.GzipFile may not exist as a parent class
Modified:
 python/trunk/Lib/xmlrpclib.py
Modified: python/trunk/Lib/xmlrpclib.py
==============================================================================
--- python/trunk/Lib/xmlrpclib.py	(original)
+++ python/trunk/Lib/xmlrpclib.py	Mon Jul 20 00:35:44 2009
@@ -1192,7 +1192,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

AltStyle によって変換されたページ (->オリジナル) /