Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
91932da3
Commit
91932da3
authored
Feb 24, 2012
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#13973: move a couple of imports at module level. Patch by Tshepang Lekhonkhobe.
parent
2fe4bb10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
Lib/xmlrpc/client.py
Lib/xmlrpc/client.py
+1
-2
No files found.
Lib/xmlrpc/client.py
View file @
91932da3
...
...
@@ -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"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment