New submission from luchenue <l...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue13293>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to