8000 [3.11] GH-104554: Add RTSPS support to `urllib/parse.py` (GH-104605) … · python/cpython@23b731a · GitHub
[go: up one dir, main page]

Skip to content

Commit 23b731a

Browse files
miss-islingtonzentarimblurb-it[bot]
authored
[3.11] GH-104554: Add RTSPS support to urllib/parse.py (GH-104605) (#105760)
RTSPS is the permanent scheme defined in https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml alongside RTSP and RTSPU schemes. --------- (cherry picked from commit f3266c0) Co-authored-by: zentarim <33746047+zentarim@users.noreply.github.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
1 parent 33fb895 commit 23b731a

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

Doc/library/urllib.parse.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ to an absolute URL given a "base URL."
2323
The module has been designed to match the internet RFC on Relative Uniform
2424
Resource Locators. It supports the following URL schemes: ``file``, ``ftp``,
2525
``gopher``, ``hdl``, ``http``, ``https``, ``imap``, ``mailto``, ``mms``,
26-
``news``, ``nntp``, ``prospero``, ``rsync``, ``rtsp``, ``rtspu``, ``sftp``,
27-
``shttp``, ``sip``, ``sips``, ``snews``, ``svn``, ``svn+ssh``, ``telnet``,
28-
``wais``, ``ws``, ``wss``.
26+
``news``, ``nntp``, ``prospero``, ``rsync``, ``rtsp``, ``rtsps``, ``rtspu``,
27+
``sftp``, ``shttp``, ``sip``, ``sips``, ``snews``, ``svn``, ``svn+ssh``,
28+
``telnet``, ``wais``, ``ws``, ``wss``.
2929

3030
The :mod:`urllib.parse` module defines functions that fall into two broad
3131
categories: URL parsing and URL quoting. These are covered in detail in

Lib/urllib/parse.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,18 @@
5252

5353
uses_relative = ['', 'ftp', 'http', 'gopher', 'nntp', 'imap',
5454
'wais', 'file', 'https', 'shttp', 'mms',
55-
'prospero', 'rtsp', 'rtspu', 'sftp',
55+
'prospero', 'rtsp', 'rtsps', 'rtspu', 'sftp',
5656
'svn', 'svn+ssh', 'ws&# 8000 39;, 'wss']
5757

5858
uses_netloc = ['', 'ftp', 'http', 'gopher', 'nntp', 'telnet',
5959
'imap', 'wais', 'file', 'mms', 'https', 'shttp',
60-
'snews', 'prospero', 'rtsp', 'rtspu', 'rsync',
60+
'snews', 'prospero', 'rtsp', 'rtsps', 'rtspu', 'rsync',
6161
'svn', 'svn+ssh', 'sftp', 'nfs', 'git', 'git+ssh',
6262
'ws', 'wss']
6363

6464
uses_params = ['', 'ftp', 'hdl', 'prospero', 'http', 'imap',
65-
'https', 'shttp', 'rtsp', 'rtspu', 'sip', 'sips',
66-
'mms', 'sftp', 'tel']
65+
'https', 'shttp', 'rtsp', 'rtsps', 'rtspu', 'sip',
66+
'sips', 'mms', 'sftp', 'tel']
6767

6868
# These are not actually used anymore, but should stay for backwards
6969
# compatibility. (They are undocumented, but have a public-looking name.)
@@ -72,7 +72,7 @@
7272
'telnet', 'wais', 'imap', 'snews', 'sip', 'sips']
7373

7474
uses_query = ['', 'http', 'wais', 'imap', 'https', 'shttp', 'mms',
75-
'gopher', 'rtsp', 'rtspu', 'sip', 'sips']
75+
'gopher', 'rtsp', 'rtsps', 'rtspu', 'sip', 'sips']
7676

7777
uses_fragment = ['', 'ftp', 'hdl', 'http', 'gopher', 'news',
7878
'nntp', 'wais', 'https', 'shttp', 'snews',
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add RTSPS scheme support in urllib.parse

0 commit comments

Comments
 (0)
0