|
8 | 8 | "urlsplit", "urlunsplit"] |
9 | 9 |
|
10 | 10 | # A classification of schemes ('' means apply by default) |
11 | | -uses_relative = ['ftp', 'http', 'gopher', 'nntp', 'imap', 'wais', 'file', |
| 11 | +uses_relative = dict.fromkeys(['ftp', 'http', 'gopher', 'nntp', 'imap', 'wais', 'file', |
12 | 12 | 'https', 'shttp', |
13 | | - 'prospero', 'rtsp', 'rtspu', ''] |
14 | | -uses_netloc = ['ftp', 'http', 'gopher', 'nntp', 'telnet', 'imap', 'wais', |
| 13 | + 'prospero', 'rtsp', 'rtspu', '']) |
| 14 | +uses_netloc = dict.fromkeys(['ftp', 'http', 'gopher', 'nntp', 'telnet', 'imap', 'wais', |
15 | 15 | 'file', |
16 | 16 | 'https', 'shttp', 'snews', |
17 | | - 'prospero', 'rtsp', 'rtspu', ''] |
18 | | -non_hierarchical = ['gopher', 'hdl', 'mailto', 'news', 'telnet', 'wais', |
| 17 | + 'prospero', 'rtsp', 'rtspu', '']) |
| 18 | +non_hierarchical = dict.fromkeys(['gopher', 'hdl', 'mailto', 'news', 'telnet', 'wais', |
19 | 19 | 'imap', 'snews', 'sip', |
20 | | - ] |
21 | | -uses_params = ['ftp', 'hdl', 'prospero', 'http', 'imap', |
| 20 | + ]) |
| 21 | +uses_params = dict.fromkeys(['ftp', 'hdl', 'prospero', 'http', 'imap', |
22 | 22 | 'https', 'shttp', 'rtsp', 'rtspu', 'sip', |
23 | | - ''] |
24 | | -uses_query = ['http', 'wais', 'imap', |
| 23 | + '']) |
| 24 | +uses_query = dict.fromkeys(['http', 'wais', 'imap', |
25 | 25 | 'https', 'shttp', |
26 | 26 | 'gopher', 'rtsp', 'rtspu', 'sip', |
27 | | - ''] |
28 | | -uses_fragment = ['ftp', 'hdl', 'http', 'gopher', 'news', 'nntp', 'wais', |
| 27 | + '']) |
| 28 | +uses_fragment = dict.fromkeys(['ftp', 'hdl', 'http', 'gopher', 'news', 'nntp', 'wais', |
29 | 29 | 'https', 'shttp', 'snews', |
30 | | - 'file', 'prospero', ''] |
| 30 | + 'file', 'prospero', '']) |
31 | 31 |
|
32 | 32 | # Characters valid in scheme names |
33 | 33 | scheme_chars = ('abcdefghijklmnopqrstuvwxyz' |
|
0 commit comments