diff options
author | Fred Drake <fdrake@acm.org> | 2000-04-14 14:01:34 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-04-14 14:01:34 (GMT) |
commit | 0556501a810467fcb18f0a0f312b475dff27d20b (patch) | |
tree | 2f55aef12486d8dbafc16d9cd46eb445874a8fe3 | |
parent | 8eef583025301a2547e0b348ee124f6adbb004fe (diff) | |
download | cpython-0556501a810467fcb18f0a0f312b475dff27d20b.zip cpython-0556501a810467fcb18f0a0f312b475dff27d20b.tar.gz cpython-0556501a810467fcb18f0a0f312b475dff27d20b.tar.bz2 |
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.)
-rw-r--r-- | Lib/urlparse.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/urlparse.py b/Lib/urlparse.py index abaa66c..f4b4522 100644 --- a/Lib/urlparse.py +++ b/Lib/urlparse.py @@ -11,20 +11,20 @@ from string import join, split, rfind # A classification of schemes ('' means apply by default) uses_relative = ['ftp', 'http', 'gopher', 'nntp', 'wais', 'file', 'https', 'shttp', - 'prospero', ''] + 'prospero', 'rtsp', 'rtspu', ''] uses_netloc = ['ftp', 'http', 'gopher', 'nntp', 'telnet', 'wais', 'file', 'https', 'shttp', 'snews', - 'prospero', ''] + 'prospero', 'rtsp', 'rtspu', ''] non_hierarchical = ['gopher', 'hdl', 'mailto', 'news', 'telnet', 'wais', 'snews', ] uses_params = ['ftp', 'hdl', 'prospero', 'http', - 'https', 'shttp', + 'https', 'shttp', 'rtsp', 'rtspu', ''] uses_query = ['http', 'wais', 'https', 'shttp', - 'gopher', + 'gopher', 'rtsp', 'rtspu', ''] uses_fragment = ['ftp', 'hdl', 'http', 'gopher', 'news', 'nntp', 'wais', 'https', 'shttp', 'snews', |