10
10
"urlsplit", "urlunsplit"]
12
12
# A classification of schemes ('' means apply by default)
13
uses_relative = ['ftp', 'http', 'gopher', 'nntp',
13
uses_relative = ['ftp', 'ftps', 'http', 'gopher', 'nntp',
14
14
'wais', 'file', 'https', 'shttp', 'mms',
15
15
'prospero', 'rtsp', 'rtspu', '', 'sftp', 'imap', 'imaps']
16
uses_netloc = ['ftp', 'http', 'gopher', 'nntp', 'telnet',
16
uses_netloc = ['ftp', 'ftps', 'http', 'gopher', 'nntp', 'telnet',
17
17
'wais', 'file', 'mms', 'https', 'shttp',
18
18
'snews', 'prospero', 'rtsp', 'rtspu', 'rsync', '',
19
19
'svn', 'svn+ssh', 'sftp', 'imap', 'imaps']
20
20
non_hierarchical = ['gopher', 'hdl', 'mailto', 'news',
21
21
'telnet', 'wais', 'snews', 'sip', 'sips', 'imap', 'imaps']
22
uses_params = ['ftp', 'hdl', 'prospero', 'http',
22
uses_params = ['ftp', 'ftps', 'hdl', 'prospero', 'http',
23
23
'https', 'shttp', 'rtsp', 'rtspu', 'sip', 'sips',
24
24
'mms', '', 'sftp', 'imap', 'imaps']
25
25
uses_query = ['http', 'wais', 'https', 'shttp', 'mms',
26
26
'gopher', 'rtsp', 'rtspu', 'sip', 'sips', 'imap', 'imaps', '']
27
uses_fragment = ['ftp', 'hdl', 'http', 'gopher', 'news',
27
uses_fragment = ['ftp', 'ftps', 'hdl', 'http', 'gopher', 'news',
28
28
'nntp', 'wais', 'https', 'shttp', 'snews',
29
29
'file', 'prospero', '']
262
bscheme, bnetloc, bpath, bparams, bquery, bfragment = \
263
urlparse(base, '', allow_fragments)
264
scheme, netloc, path, params, query, fragment = \
265
urlparse(url, bscheme, allow_fragments)
262
bscheme, bnetloc, bpath, bparams, bquery, bfragment = urlparse(base, '', allow_fragments) #@UnusedVariable
263
scheme, netloc, path, params, query, fragment = urlparse(url, bscheme, allow_fragments)
266
264
if scheme != bscheme or scheme not in uses_relative:
268
266
if scheme in uses_netloc: