From b02092a9b2606e10a697345f0c0a306515953056 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 2 Jan 1997 18:18:27 +0000 Subject: Added characteristics of shttp, https, and snews. --- Lib/urlparse.py | 15 ++++++++++++--- 1 file 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 -- cgit v0.12