Commit 78a3b109 authored by Fred Drake's avatar Fred Drake

Anthony Baxter <anthony@interlink.com.au>:

The following adds support for RTSP (RFC2326) URLs to the standard
urlparse.py module.

(Augmented by FLD to include rtspu:, specified in the same RFC & OK'd
by Anthony.)
parent 75c1a27f
...@@ -11,20 +11,20 @@ from string import join, split, rfind ...@@ -11,20 +11,20 @@ from string import join, split, rfind
# A classification of schemes ('' means apply by default) # A classification of schemes ('' means apply by default)
uses_relative = ['ftp', 'http', 'gopher', 'nntp', 'wais', 'file', uses_relative = ['ftp', 'http', 'gopher', 'nntp', 'wais', 'file',
'https', 'shttp', 'https', 'shttp',
'prospero', ''] 'prospero', 'rtsp', 'rtspu', '']
uses_netloc = ['ftp', 'http', 'gopher', 'nntp', 'telnet', 'wais', uses_netloc = ['ftp', 'http', 'gopher', 'nntp', 'telnet', 'wais',
'file', 'file',
'https', 'shttp', 'snews', 'https', 'shttp', 'snews',
'prospero', ''] 'prospero', 'rtsp', 'rtspu', '']
non_hierarchical = ['gopher', 'hdl', 'mailto', 'news', 'telnet', 'wais', non_hierarchical = ['gopher', 'hdl', 'mailto', 'news', 'telnet', 'wais',
'snews', 'snews',
] ]
uses_params = ['ftp', 'hdl', 'prospero', 'http', uses_params = ['ftp', 'hdl', 'prospero', 'http',
'https', 'shttp', 'https', 'shttp', 'rtsp', 'rtspu',
''] '']
uses_query = ['http', 'wais', uses_query = ['http', 'wais',
'https', 'shttp', 'https', 'shttp',
'gopher', 'gopher', 'rtsp', 'rtspu',
''] '']
uses_fragment = ['ftp', 'hdl', 'http', 'gopher', 'news', 'nntp', 'wais', uses_fragment = ['ftp', 'hdl', 'http', 'gopher', 'news', 'nntp', 'wais',
'https', 'shttp', 'snews', 'https', 'shttp', 'snews',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment