]> granicus.if.org Git - python/commitdiff
Anthony Baxter <anthony@interlink.com.au>:
authorFred Drake <fdrake@acm.org>
Fri, 14 Apr 2000 14:01:34 +0000 (14:01 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 14 Apr 2000 14:01:34 +0000 (14:01 +0000)
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.)

Lib/urlparse.py

index abaa66c896427acbd33e89536c04fd11a21694cc..f4b45226b753e71a3374e02cea44b238ff2b32a5 100644 (file)
@@ -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',