Home | History | Annotate | Download | only in Lib

Lines Matching refs:url

1 """Convert a NT pathname to a file URL and vice versa."""
3 def url2pathname(url):
4 """OS-specific conversion from a relative URL of the 'file' scheme
14 url = url.replace(':', '|')
15 if not '|' in url:
17 if url[:4] == '////':
21 url = url[2:]
22 components = url.split('/')
25 comp = url.split('|')
27 error = 'Bad URL: ' + url
35 # Issue #11474: url like '/C|/' should convert into 'C:\\'
36 if path.endswith(':') and url.endswith('/'):
41 """OS-specific conversion from a file system path to a relative URL