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)
commite4dd7beffe0658f25ff666bb9df8b283ee91e42c
tree9698d24b6c7b669c2eb5c41c552fbe9e41e3abf3
parent40610caac4845b93e3f003fe7af005f77b836434
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