]> granicus.if.org Git - python/commitdiff
Added characteristics of shttp, https, and snews.
authorGuido van Rossum <guido@python.org>
Thu, 2 Jan 1997 18:18:27 +0000 (18:18 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 2 Jan 1997 18:18:27 +0000 (18:18 +0000)
Lib/urlparse.py

index 91775333c7328177e6de77cdf968bfee0fcf5153..31d853a168dda00ae779734f6d8c1778b1806a2a 100644 (file)
@@ -7,13 +7,22 @@ from string import joinfields, splitfields, find, rfind
 
 # A classification of schemes ('' means apply by default)
 uses_relative = ['ftp', 'http', 'gopher', 'nntp', 'wais', 'file',
+                'https', 'shttp',
                 'prospero', '']
 uses_netloc = ['ftp', 'http', 'gopher', 'nntp', 'telnet', 'wais',
+              'https', 'shttp', 'snews',
               'prospero', '']
-non_hierarchical = ['gopher', 'hdl', 'mailto', 'news', 'telnet', 'wais']
-uses_params = ['ftp', 'hdl', 'prospero', 'http', '']
-uses_query = ['http', 'wais', '']
+non_hierarchical = ['gopher', 'hdl', 'mailto', 'news', 'telnet', 'wais',
+                   'snews',
+                   ]
+uses_params = ['ftp', 'hdl', 'prospero', 'http',
+              'https', 'shttp',
+              '']
+uses_query = ['http', 'wais',
+             'https', 'shttp',
+             '']
 uses_fragment = ['ftp', 'hdl', 'http', 'gopher', 'news', 'nntp', 'wais',
+                'https', 'shttp', 'snews',
                 'file', 'prospero', '']
 
 # Characters valid in scheme names