[issue26873] xmlrpclib raises when trying to convert an int to string when unicode is available
Serhiy Storchaka
report at bugs.python.org
Thu Apr 28 12:50:22 EDT 2016
Serhiy Storchaka added the comment:
Minimal reproducer:
>>> xmlrpclib.loads('<params><param><value><struct><member><name>a</name><value><ex:nil/></value></member><member><name>b</name><value><ex:nil/></value></member></struct></value></param></params>')
(({'a': 'b'},), None)
The workaround for your particular case, Nathan:
xmlrpclib.Unmarshaller.dispatch['ex:nil'] = xmlrpclib.Unmarshaller.dispatch['nil']
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26873>
_______________________________________
More information about the Python-bugs-list
mailing list