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
9c4c459a
Commit
9c4c459a
authored
Sep 08, 2019
by
Dong-hee Na
Committed by
Serhiy Storchaka
Sep 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-38038: Remove urllib.parse._splittype from xmlrpc.client. (GH-15703)
parent
32f82539
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
Lib/xmlrpc/client.py
Lib/xmlrpc/client.py
+5
-6
No files found.
Lib/xmlrpc/client.py
View file @
9c4c459a
...
...
@@ -1421,15 +1421,14 @@ class ServerProxy:
# establish a "logical" server connection
# get the url
type
,
uri
=
urllib
.
parse
.
_splittyp
e
(
uri
)
if
typ
e
not
in
(
"http"
,
"https"
):
p
=
urllib
.
parse
.
urlpars
e
(
uri
)
if
p
.
schem
e
not
in
(
"http"
,
"https"
):
raise
OSError
(
"unsupported XML-RPC protocol"
)
self
.
__host
,
self
.
__handler
=
urllib
.
parse
.
_splithost
(
uri
)
if
not
self
.
__handler
:
self
.
__handler
=
"/RPC2"
self
.
__host
=
p
.
netloc
self
.
__handler
=
p
.
path
or
"/RPC2"
if
transport
is
None
:
if
typ
e
==
"https"
:
if
p
.
schem
e
==
"https"
:
handler
=
SafeTransport
extra_kwargs
=
{
"context"
:
context
}
else
:
...
...
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