From: Fred Drake Date: Fri, 14 Apr 2000 14:01:34 +0000 (+0000) Subject: Anthony Baxter : X-Git-Tag: v2.0b1~2026 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0556501a810467fcb18f0a0f312b475dff27d20b;p=python Anthony Baxter : 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.) --- diff --git a/Lib/urlparse.py b/Lib/urlparse.py index abaa66c896..f4b45226b7 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',