As of python 2.5, tlslite-0.3.8's XMLRPCTransport doesn't set xmlrpclib.Transport._use_datetime and overrides the __init__ which sets this attribute. This causes a crash at least in xmlrpclib.Transport.getparser, where the attribute is used. Reproducible: Always Steps to Reproduce: 1.>>> from tlslite.api import XMLRPCTransport 2.>>> XMLRPCTransport().getparser() Actual Results: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib64/python2.5/xmlrpclib.py", line 1210, in getparser return getparser(use_datetime=self._use_datetime) AttributeError: XMLRPCTransport instance has no attribute '_use_datetime' Expected Results: >>> from xmlrpclib import Transport >>> Transport().getparser() (<xmlrpclib.ExpatParser instance at 0xdb0d40>, <xmlrpclib.Unmarshaller instance at 0xdb0cf8>)
Created attachment 140062 [details, diff] proposed patch
one question: does this patch works also for older python versions?
It should, and I've used it with python 2.4 without any problems. _use_datetime doesn't exist in earlier versions, and I can't see any crazy introspection that could have caused problems. Setting it should have no effect in <2.5.
ok, then I include the patch, though I will revbump for testing. but please send this patch also upstream. thanks!
ok, new revision in portage. please test!