summaryrefslogtreecommitdiff
path: root/Lib/xmlrpc
diff options
context:
space:
mode:
authorCheryl Sabella <cheryl.sabella@gmail.com>2018-04-25 16:51:54 -0700
committerƁukasz Langa <lukasz@langa.pl>2018-04-25 16:51:54 -0700
commit0250de48199552cdaed5a4fe44b3f9cdb5325363 (patch)
tree1b990f6f694f6d61793484c84a16134f2d6f4216 /Lib/xmlrpc
parent57faf348872d1d0af1808c82f535cf220d64b028 (diff)
downloadcpython-git-0250de48199552cdaed5a4fe44b3f9cdb5325363.tar.gz
bpo-27485: Rename and deprecate undocumented functions in urllib.parse (GH-2205)
Diffstat (limited to 'Lib/xmlrpc')
-rw-r--r--Lib/xmlrpc/client.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/xmlrpc/client.py b/Lib/xmlrpc/client.py
index 1e8bb5f1bb..ddab76ffbe 100644
--- a/Lib/xmlrpc/client.py
+++ b/Lib/xmlrpc/client.py
@@ -1214,7 +1214,7 @@ class Transport:
if isinstance(host, tuple):
host, x509 = host
- auth, host = urllib.parse.splituser(host)
+ auth, host = urllib.parse._splituser(host)
if auth:
auth = urllib.parse.unquote_to_bytes(auth)
@@ -1413,10 +1413,10 @@ class ServerProxy:
# establish a "logical" server connection
# get the url
- type, uri = urllib.parse.splittype(uri)
+ type, uri = urllib.parse._splittype(uri)
if type not in ("http", "https"):
raise OSError("unsupported XML-RPC protocol")
- self.__host, self.__handler = urllib.parse.splithost(uri)
+ self.__host, self.__handler = urllib.parse._splithost(uri)
if not self.__handler:
self.__handler = "/RPC2"