GNOME Bugzilla – Bug 628731
doesn't work with python 2.7
Last modified: 2010-09-22 16:00:28 UTC
Trying to edit or push, I get the following on F14 with python 2.7: Traceback (most recent call last):
+ Trace 223543
do_edit(*args)
edit_bug(bug)
legal_resolutions = bug.server.legal_values('resolution')
values = self._legal_values(field)
response = self.get_xmlrpc_proxy().Bug.legal_values({ 'field': field })
return self.__send(self.__name, args)
verbose=self.__verbose
return self.single_request(host, handler, request_body, verbose)
response = h.getresponse(buffering=True)
Created attachment 170842 [details] [review] Fix python-2.7 compatibility with xmlrpclib In Python 2.7 xmlrpclib was changed to use httplib.HTTP[S]Connection instead of the deprecatede httplib.HTTP[S]. This broke our xmlrpclib.Transport subclass which overrode make_connection(). For compatibility with old and new Python, switch to subclassing Transport and SafeTransport separately, with a mixin to add cookies.
Attachment 170842 [details] pushed as 8c82336 - Fix python-2.7 compatibility with xmlrpclib