diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2012-02-24 10:44:04 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2012-02-24 10:44:04 (GMT) |
commit | 91932da338a938baaf8820c0534d36baf15d09d4 (patch) | |
tree | fb08cb260316367f3c9920c1ee1f7ba7975ca6ef /Lib/xmlrpc/client.py | |
parent | 2fe4bb10e74e8950d011fb7b7f1a46f83955d805 (diff) | |
download | cpython-91932da338a938baaf8820c0534d36baf15d09d4.zip cpython-91932da338a938baaf8820c0534d36baf15d09d4.tar.gz cpython-91932da338a938baaf8820c0534d36baf15d09d4.tar.bz2 |
#13973: move a couple of imports at module level. Patch by Tshepang Lekhonkhobe.
Diffstat (limited to 'Lib/xmlrpc/client.py')
-rw-r--r-- | Lib/xmlrpc/client.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/xmlrpc/client.py b/Lib/xmlrpc/client.py index 59f7546..a779e66 100644 --- a/Lib/xmlrpc/client.py +++ b/Lib/xmlrpc/client.py @@ -132,6 +132,7 @@ import sys import time from datetime import datetime import http.client +import urllib.parse from xml.parsers import expat import socket import errno @@ -1190,7 +1191,6 @@ class Transport: if isinstance(host, tuple): host, x509 = host - import urllib.parse auth, host = urllib.parse.splituser(host) if auth: @@ -1383,7 +1383,6 @@ class ServerProxy: # establish a "logical" server connection # get the url - import urllib.parse type, uri = urllib.parse.splittype(uri) if type not in ("http", "https"): raise IOError("unsupported XML-RPC protocol") |