STINNER Victor <victor.stin...@haypocalc.com> added the comment:

In Python 2.6/3.1, xmlrpclib.Transport.parse_response() accepts a file like 
object. But Python 2.7/3.2 requires a HTTPResponse object because 
parse_response() calls response.getheader() method.

The patch moves the call to .getheader() in single_request() to accept a 
file-like object in parse_response(). But I don't understand why the gzip 
support is implemented in xmlrpclib instead of httplib.

The problem is related to M2Crypto which pass a BIO object (file-like object, 
without .getresponse() method).

----------
nosy: +haypo
title: broken API in xmlrpclib.Transport -> Incompatible API change in 
xmlrpclib.Transport.parse_response() of Python 2.7 and 3.2
versions: +Python 2.7, Python 3.2 -Python 3.3

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8194>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to