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
f8479eeb
Commit
f8479eeb
authored
Sep 16, 2016
by
Berker Peksag
Browse files
Options
Browse Files
Download
Plain Diff
Issue #25895: Merge from 3.5
parents
355bbb0a
f676748a
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
3 deletions
+9
-3
Doc/library/urllib.parse.rst
Doc/library/urllib.parse.rst
+1
-1
Lib/test/test_urlparse.py
Lib/test/test_urlparse.py
+2
-0
Lib/urllib/parse.py
Lib/urllib/parse.py
+3
-2
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Doc/library/urllib.parse.rst
View file @
f8479eeb
...
...
@@ -25,7 +25,7 @@ Resource Locators. It supports the following URL schemes: ``file``, ``ftp``,
``gopher``, ``hdl``, ``http``, ``https``, ``imap``, ``mailto``, ``mms``,
``news``, ``nntp``, ``prospero``, ``rsync``, ``rtsp``, ``rtspu``, ``sftp``,
``shttp``, ``sip``, ``sips``, ``snews``, ``svn``, ``svn+ssh``, ``telnet``,
``wais``.
``wais``
, ``ws``, ``wss``
.
The :mod:`urllib.parse` module defines functions that fall into two broad
categories: URL parsing and URL quoting. These are covered in detail in
...
...
Lib/test/test_urlparse.py
View file @
f8479eeb
...
...
@@ -425,6 +425,8 @@ class UrlParseTestCase(unittest.TestCase):
self
.
checkJoin
(
''
,
'http://a/./g'
,
'http://a/./g'
)
self
.
checkJoin
(
'svn://pathtorepo/dir1'
,
'dir2'
,
'svn://pathtorepo/dir2'
)
self
.
checkJoin
(
'svn+ssh://pathtorepo/dir1'
,
'dir2'
,
'svn+ssh://pathtorepo/dir2'
)
self
.
checkJoin
(
'ws://a/b'
,
'g'
,
'ws://a/g'
)
self
.
checkJoin
(
'wss://a/b'
,
'g'
,
'wss://a/g'
)
# XXX: The following tests are no longer compatible with RFC3986
# self.checkJoin(SIMPLE_BASE, '../../../g','http://a/../g')
...
...
Lib/urllib/parse.py
View file @
f8479eeb
...
...
@@ -42,11 +42,12 @@ __all__ = ["urlparse", "urlunparse", "urljoin", "urldefrag",
uses_relative
=
[
'ftp'
,
'http'
,
'gopher'
,
'nntp'
,
'imap'
,
'wais'
,
'file'
,
'https'
,
'shttp'
,
'mms'
,
'prospero'
,
'rtsp'
,
'rtspu'
,
''
,
'sftp'
,
'svn'
,
'svn+ssh'
]
'svn'
,
'svn+ssh'
,
'ws'
,
'wss'
]
uses_netloc
=
[
'ftp'
,
'http'
,
'gopher'
,
'nntp'
,
'telnet'
,
'imap'
,
'wais'
,
'file'
,
'mms'
,
'https'
,
'shttp'
,
'snews'
,
'prospero'
,
'rtsp'
,
'rtspu'
,
'rsync'
,
''
,
'svn'
,
'svn+ssh'
,
'sftp'
,
'nfs'
,
'git'
,
'git+ssh'
]
'svn'
,
'svn+ssh'
,
'sftp'
,
'nfs'
,
'git'
,
'git+ssh'
,
'ws'
,
'wss'
]
uses_params
=
[
'ftp'
,
'hdl'
,
'prospero'
,
'http'
,
'imap'
,
'https'
,
'shttp'
,
'rtsp'
,
'rtspu'
,
'sip'
,
'sips'
,
'mms'
,
''
,
'sftp'
,
'tel'
]
...
...
Misc/NEWS
View file @
f8479eeb
...
...
@@ -27,6 +27,9 @@ Core and Builtins
Library
-------
-
Issue
#
25895
:
Enable
WebSocket
URL
schemes
in
urllib
.
parse
.
urljoin
.
Patch
by
Gergely
Imreh
and
Markus
Holtermann
.
-
Issue
#
28114
:
Fix
a
crash
in
parse_envlist
()
when
env
contains
byte
strings
.
Patch
by
Eryk
Sun
.
...
...
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