Skip to content

Commit f3266c0

Browse files
zentarimblurb-it[bot]
andauthoredJun 13, 2023
GH-104554: Add RTSPS support to urllib/parse.py (#104605)
* GH-104554: Add RTSPS support to `urllib/parse.py` RTSPS is the permanent scheme defined in https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml alongside RTSP and RTSPU schemes. * 📜🤖 Added by blurb_it. --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
1 parent 4cefe3c commit f3266c0

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed
 

‎Doc/library/urllib.parse.rst

+3-3
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

+5-5
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', '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', 'itms-services']
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',
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add RTSPS scheme support in urllib.parse

0 commit comments

Comments
 (0)
Please sign in to comment.