Home
last modified time | relevance | path

Searched refs:pathname2url (Results 1 – 24 of 24) 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.py399 return "file://%s" % urllib.pathname2url(os.path.abspath(filePath))
808 result = urllib.pathname2url(expected_path)
822 result = urllib.pathname2url(given)
833 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/setuptools/setuptools/tests/
Dtest_dist.py8 from setuptools.extern.six.moves.urllib.request import pathname2url
22 index_url = urljoin('file://', pathname2url(str(index)))
Dtest_packageindex.py180 url = 'file:' + urllib.request.pathname2url(str(tmpdir)) + '/'
/external/python/cpython3/Lib/test/
Dtest_urllib.py19 from nturl2path import url2pathname, pathname2url
724 return "file://%s" % urllib.request.pathname2url(filePath)
1491 result = urllib.request.pathname2url(expected_path)
1505 result = urllib.request.pathname2url(given)
1516 result = urllib.request.pathname2url(given)
1575 fileurl = "file:" + urllib.request.pathname2url(tmpfile)
1651 self.assertEqual(url2pathname(pathname2url(path)), path)
1656 self.assertEqual(pathname2url("C:"), '///C:')
1657 self.assertEqual(pathname2url("C:\\"), '///C:')
1660 self.assertEqual(pathname2url(r"\\\folder\test" "\\"),
[all …]
Dtest_urllib2.py690 urlpath = urllib.request.pathname2url(path)
/external/tensorflow/tensorflow/python/keras/utils/
Ddata_utils_test.py28 from six.moves.urllib.request import pathname2url
56 origin = urljoin('file://', pathname2url(os.path.abspath(tar_file_path)))
75 origin = urljoin('file://', pathname2url(os.path.abspath(zip_file_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/python/cpython3/Lib/
Dnturl2path.py45 def pathname2url(p): function
/external/skia/tools/skpbench/
Dsheet.py160 fileuri = urlparse.urljoin('file:', urllib.pathname2url(pathname))
/external/skqp/tools/skpbench/
Dsheet.py160 fileuri = urlparse.urljoin('file:', urllib.pathname2url(pathname))
/external/libchrome/mojo/public/tools/bindings/generators/
Dmojom_js_generator.py192 return urllib.pathname2url(
/external/python/cpython3/Lib/urllib/
Drequest.py1673 from nturl2path import url2pathname, pathname2url
1680 def pathname2url(pathname): function
/external/python/cpython2/Doc/library/
Durllib.rst279 .. function:: pathname2url(path)
/external/python/six/documentation/
Dindex.rst758 * :func:`py2:urllib.pathname2url`
/external/python/cpython3/Doc/library/
Durllib.request.rst149 .. 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
/external/python/cpython3/Misc/
DHISTORY27713 Don't convert URLs to URLs using pathname2url.
27973 As Des Barry points out, we need to call pathname2url(file) in two
32206 - Module urllib now has two new functions url2pathname and pathname2url