projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fe4bb1
)
#13973: move a couple of imports at module level. Patch by Tshepang Lekhonkhobe.
author
Ezio Melotti
<ezio.melotti@gmail.com>
Fri, 24 Feb 2012 10:44:04 +0000
(12:44 +0200)
committer
Ezio Melotti
<ezio.melotti@gmail.com>
Fri, 24 Feb 2012 10:44:04 +0000
(12:44 +0200)
Lib/xmlrpc/client.py
patch
|
blob
|
history
diff --git
a/Lib/xmlrpc/client.py
b/Lib/xmlrpc/client.py
index 59f75462ff3cb364b9fb60ac641949e89eacfe34..a779e660755a85e882600a85e55b367a219b4192 100644
(file)
--- 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")