|
38 | 38 | "DefragResult", "ParseResult", "SplitResult",
|
39 | 39 | "DefragResultBytes", "ParseResultBytes", "SplitResultBytes"]
|
40 | 40 |
|
41 |
| -# A classification of schemes ('' means apply by default) |
42 |
| -uses_relative = ['ftp', 'http', 'gopher', 'nntp', 'imap', |
| 41 | +# A classification of schemes. |
| 42 | +# The empty string classifies URLs with no scheme specified, |
| 43 | +# being the default value returned by “urlsplit” and “urlparse”. |
| 44 | + |
| 45 | +uses_relative = ['', 'ftp', 'http', 'gopher', 'nntp', 'imap', |
43 | 46 | 'wais', 'file', 'https', 'shttp', 'mms',
|
44 |
| - 'prospero', 'rtsp', 'rtspu', '', 'sftp', |
| 47 | + 'prospero', 'rtsp', 'rtspu', 'sftp', |
45 | 48 | 'svn', 'svn+ssh', 'ws', 'wss']
|
46 |
| -uses_netloc = ['ftp', 'http', 'gopher', 'nntp', 'telnet', |
| 49 | + |
| 50 | +uses_netloc = ['', 'ftp', 'http', 'gopher', 'nntp', 'telnet', |
47 | 51 | 'imap', 'wais', 'file', 'mms', 'https', 'shttp',
|
48 |
| - 'snews', 'prospero', 'rtsp', 'rtspu', 'rsync', '', |
| 52 | + 'snews', 'prospero', 'rtsp', 'rtspu', 'rsync', |
49 | 53 | 'svn', 'svn+ssh', 'sftp', 'nfs', 'git', 'git+ssh',
|
50 | 54 | 'ws', 'wss']
|
51 |
| -uses_params = ['ftp', 'hdl', 'prospero', 'http', 'imap', |
| 55 | + |
| 56 | +uses_params = ['', 'ftp', 'hdl', 'prospero', 'http', 'imap', |
52 | 57 | 'https', 'shttp', 'rtsp', 'rtspu', 'sip', 'sips',
|
53 |
| - 'mms', '', 'sftp', 'tel'] |
| 58 | + 'mms', 'sftp', 'tel'] |
54 | 59 |
|
55 | 60 | # These are not actually used anymore, but should stay for backwards
|
56 | 61 | # compatibility. (They are undocumented, but have a public-looking name.)
|
| 62 | + |
57 | 63 | non_hierarchical = ['gopher', 'hdl', 'mailto', 'news',
|
58 | 64 | 'telnet', 'wais', 'imap', 'snews', 'sip', 'sips']
|
59 |
| -uses_query = ['http', 'wais', 'imap', 'https', 'shttp', 'mms', |
60 |
| - 'gopher', 'rtsp', 'rtspu', 'sip', 'sips', ''] |
61 |
| -uses_fragment = ['ftp', 'hdl', 'http', 'gopher', 'news', |
| 65 | + |
| 66 | +uses_query = ['', 'http', 'wais', 'imap', 'https', 'shttp', 'mms', |
| 67 | + 'gopher', 'rtsp', 'rtspu', 'sip', 'sips'] |
| 68 | + |
| 69 | +uses_fragment = ['', 'ftp', 'hdl', 'http', 'gopher', 'news', |
62 | 70 | 'nntp', 'wais', 'https', 'shttp', 'snews',
|
63 |
| - 'file', 'prospero', ''] |
| 71 | + 'file', 'prospero'] |
64 | 72 |
|
65 | 73 | # Characters valid in scheme names
|
66 | 74 | scheme_chars = ('abcdefghijklmnopqrstuvwxyz'
|
|
0 commit comments