[issue13293] xmlrpc.client encode error

luchenue report at bugs.python.org
Sun Oct 30 13:55:55 CET 2011


New submission from luchenue <l at ooa.cc>:

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("&", "&amp;")



bytes can't replace

----------
messages: 146637
nosy: luchenue
priority: normal
severity: normal
status: open
title: xmlrpc.client encode error
type: behavior
versions: Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13293>
_______________________________________


More information about the Python-bugs-list mailing list