]> code.ossystems Code Review - openembedded-core.git/commit
bitbake/xmlrpc: Modify xmlrpc server to work with Python 2.7
authorJoshua Lock <josh@linux.intel.com>
Wed, 1 Dec 2010 14:40:21 +0000 (14:40 +0000)
committerRichard Purdie <rpurdie@linux.intel.com>
Tue, 7 Dec 2010 12:51:59 +0000 (12:51 +0000)
commitb9617bf6e15fe75f850fe5644eea4b7f04eed792
tree9073766b2f9d6874808cd8ca1d17e410b86d1b43
parent84384aa8a9b052a4740fd266694ecb4990b6edf5
bitbake/xmlrpc: Modify xmlrpc server to work with Python 2.7

Python 2.7's library changes some of xmlrpclib's internal implementation such
that interacting with a proxy to BitBakes SimpleXMLRPCServer would cause
BitBake to crash.

The issue was traced to changes in the xmlrpclib.Transport implementation and
Python bug #8194 (http://bugs.python.org/issue8194).

This patch introduces a workaround by create a subclass of
xmlrpclib.Transport, which overrides the offending methods with the Python
2.6.6 implementation copy and pasted from the Python 2.6.6 xmlrpclib, and
using this BBTransport implementation for both xmlrpclib.Server objects we
create.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
bitbake/lib/bb/server/xmlrpc.py