Lines Matching refs:url
1 """Convert a NT pathname to a file URL and vice versa.
8 def url2pathname(url):
9 """OS-specific conversion from a relative URL of the 'file' scheme
19 url = url.replace(':', '|')
20 if not '|' in url:
22 if url[:4] == '////':
26 url = url[2:]
27 components = url.split('/')
30 comp = url.split('|')
32 error = 'Bad URL: ' + url
40 # Issue #11474 - handing url such as |c/|
41 if path.endswith(':') and url.endswith('/'):
46 """OS-specific conversion from a file system path to a relative URL