Searched refs:pathname2url (Results 1 – 12 of 12) sorted by relevance
/external/python/cpython2/Lib/test/ |
D | test_macurl2path.py | 19 self.assertEqual("drive", macurl2path.pathname2url("drive:")) 20 self.assertEqual("drive/dir", macurl2path.pathname2url("drive:dir:")) 21 self.assertEqual("drive/dir/file", macurl2path.pathname2url("drive:dir:file")) 22 self.assertEqual("drive/file", macurl2path.pathname2url("drive:file")) 23 self.assertEqual("file", macurl2path.pathname2url("file")) 24 self.assertEqual("file", macurl2path.pathname2url(":file")) 25 self.assertEqual("dir", macurl2path.pathname2url(":dir:")) 26 self.assertEqual("dir/file", macurl2path.pathname2url(":dir:file")) 27 self.assertRaises(RuntimeError, macurl2path.pathname2url, "/") 28 self.assertEqual("dir/../file", macurl2path.pathname2url("dir::file"))
|
D | test_urllib.py | 398 return "file://%s" % urllib.pathname2url(os.path.abspath(filePath)) 807 result = urllib.pathname2url(expected_path) 821 result = urllib.pathname2url(given) 832 result = urllib.pathname2url(given)
|
D | test_pydoc.py | 321 mod_url = nturl2path.pathname2url(mod_file)
|
D | test_urllib2.py | 615 urlpath = urllib.pathname2url(path)
|
/external/python/cpython2/Lib/plat-riscos/ |
D | rourl2path.py | 48 def pathname2url(pathname): function 67 print '%r -> %r' % (path, pathname2url(path))
|
/external/python/cpython2/Lib/ |
D | nturl2path.py | 40 def pathname2url(p): function
|
D | macurl2path.py | 52 def pathname2url(pathname): function
|
D | urllib.py | 49 from nturl2path import url2pathname, pathname2url 51 from rourl2path import url2pathname, pathname2url 58 def pathname2url(pathname): function
|
D | pydoc.py | 642 url = nturl2path.pathname2url(path)
|
/external/skia/tools/skpbench/ |
D | sheet.py | 160 fileuri = urlparse.urljoin('file:', urllib.pathname2url(pathname))
|
/external/python/cpython2/Doc/library/ |
D | urllib.rst | 274 .. function:: pathname2url(path)
|
/external/python/cpython2/Misc/ |
D | HISTORY | 10334 Don't convert URLs to URLs using pathname2url. 10594 As Des Barry points out, we need to call pathname2url(file) in two 14827 - Module urllib now has two new functions url2pathname and pathname2url
|