mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Issue #12931: xmlrpclib now encodes Unicode URI to ISO-8859-1, instead of
failing with a UnicodeDecodeError.
This commit is contained in:
parent
2156594d8c
commit
51b719814e
3 changed files with 9 additions and 0 deletions
|
|
@ -1539,6 +1539,9 @@ class ServerProxy:
|
|||
allow_none=0, use_datetime=0):
|
||||
# establish a "logical" server connection
|
||||
|
||||
if isinstance(uri, unicode):
|
||||
uri = uri.encode('ISO-8859-1')
|
||||
|
||||
# get the url
|
||||
import urllib
|
||||
type, uri = urllib.splittype(uri)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue