[issue13293] xmlrpc.client encode error

2011-10-30 Thread Florent Xicluna
Florent Xicluna added the comment: FWIW, I opened a feature request #13297. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue13293] xmlrpc.client encode error

2011-10-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 013d2881beb5 by Florent Xicluna in branch '3.2': Issue #13293: Better error message when trying to marshal bytes using xmlrpc.client. http://hg.python.org/cpython/rev/013d2881beb5 -- nosy: +python-dev _

[issue13293] xmlrpc.client encode error

2011-10-30 Thread Florent Xicluna
Florent Xicluna added the comment: binary data should be wrapped with Binary. http://docs.python.org/dev/library/xmlrpc.client.html#binary-objects -- components: +Library (Lib), XML nosy: +flox resolution: -> invalid stage: -> committed/rejected status: open -> closed ___

[issue13293] xmlrpc.client encode error

2011-10-30 Thread luchenue
New submission from luchenue : import xmlrpc.client server = xmlrpc.client.Server('XXX') print(server.login(b'bHVjaGVudWU=',b'bHVjaGVudWU=')) => xmlrpc.client def dump_string write(escape(value)) dispatch[bytes] = dump_string => def escape(s): s = s.replace("&", "&") bytes can't rep