Home | History | Annotate | Download | only in python2.7

Lines Matching refs:pathname

10 def url2pathname(pathname):
16 tp = urllib.splittype(pathname)[0]
18 raise RuntimeError, 'Cannot convert non-local URL to pathname'
20 if pathname[:3] == '///':
21 pathname = pathname[2:]
22 elif pathname[:2] == '//':
23 raise RuntimeError, 'Cannot convert non-local URL to pathname'
24 components = pathname.split('/')
52 def pathname2url(pathname):
55 if '/' in pathname:
56 raise RuntimeError, "Cannot convert pathname containing slashes"
57 components = pathname.split(':')
70 if os.path.isabs(pathname):