diff options
author | Guido van Rossum <guido@python.org> | 1997-01-02 18:18:27 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-01-02 18:18:27 (GMT) |
commit | b02092a9b2606e10a697345f0c0a306515953056 (patch) | |
tree | 80f202defa5fd5ec16aa7d653d5a700c95c65924 /Lib/urlparse.py | |
parent | 6757748641b45fa9c51dd58b5315628bf7744b22 (diff) | |
download | cpython-b02092a9b2606e10a697345f0c0a306515953056.zip cpython-b02092a9b2606e10a697345f0c0a306515953056.tar.gz cpython-b02092a9b2606e10a697345f0c0a306515953056.tar.bz2 |
Added characteristics of shttp, https, and snews.
Diffstat (limited to 'Lib/urlparse.py')
-rw-r--r-- | Lib/urlparse.py | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/Lib/urlparse.py b/Lib/urlparse.py index 9177533..31d853a 100644 --- a/Lib/urlparse.py +++ b/Lib/urlparse.py @@ -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 |