Home
last modified time | relevance | path

Searched refs:pathname2url (Results 1 – 12 of 12) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_macurl2path.py19 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"))
Dtest_urllib.py398 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)
Dtest_pydoc.py321 mod_url = nturl2path.pathname2url(mod_file)
Dtest_urllib2.py615 urlpath = urllib.pathname2url(path)
/external/python/cpython2/Lib/plat-riscos/
Drourl2path.py48 def pathname2url(pathname): function
67 print '%r -> %r' % (path, pathname2url(path))
/external/python/cpython2/Lib/
Dnturl2path.py40 def pathname2url(p): function
Dmacurl2path.py52 def pathname2url(pathname): function
Durllib.py49 from nturl2path import url2pathname, pathname2url
51 from rourl2path import url2pathname, pathname2url
58 def pathname2url(pathname): function
Dpydoc.py642 url = nturl2path.pathname2url(path)
/external/skia/tools/skpbench/
Dsheet.py160 fileuri = urlparse.urljoin('file:', urllib.pathname2url(pathname))
/external/python/cpython2/Doc/library/
Durllib.rst274 .. function:: pathname2url(path)
/external/python/cpython2/Misc/
DHISTORY10334 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