Searched refs:pathname2url (Results 1 - 18 of 18) sorted by relevance

/external/python/cpython2/Lib/test/
H A 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("di
[all...]
H A Dtest_urllib.py398 return "file://%s" % urllib.pathname2url(os.path.abspath(filePath))
801 """Test pathname2url() and url2pathname()"""
807 result = urllib.pathname2url(expected_path)
809 "pathname2url() failed; %s != %s" %
821 result = urllib.pathname2url(given)
823 "pathname2url() failed; %s != %s" %
832 result = urllib.pathname2url(given)
834 "pathname2url() failed; %s != %s" %
H A Dtest_pydoc.py321 mod_url = nturl2path.pathname2url(mod_file)
H A Dtest_urllib2.py33 # urllib.pathname2url works, unfortunately...
615 urlpath = urllib.pathname2url(path)
/external/python/cpython3/Lib/test/
H A 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("di
[all...]
H A Dtest_urllib.py19 from nturl2path import url2pathname, pathname2url namespace
588 return "file://%s" % urllib.request.pathname2url(filePath)
1324 """Test pathname2url() and url2pathname()"""
1330 result = urllib.request.pathname2url(expected_path)
1332 "pathname2url() failed; %s != %s" %
1344 result = urllib.request.pathname2url(given)
1346 "pathname2url() failed; %s != %s" %
1355 result = urllib.request.pathname2url(given)
1357 "pathname2url() failed; %s != %s" %
1537 self.assertEqual(url2pathname(pathname2url(pat
[all...]
H A Dtest_urllib2.py39 u, p = context.pop('url2pathname'), context.pop('pathname2url')
682 urlpath = urllib.request.pathname2url(path)
/external/python/cpython2/Lib/plat-riscos/
H A Drourl2path.py8 __all__ = ["url2pathname","pathname2url"]
48 def pathname2url(pathname): function
67 print '%r -> %r' % (path, pathname2url(path))
/external/python/cpython2/Lib/
H A Dmacurl2path.py8 __all__ = ["url2pathname","pathname2url"]
52 def pathname2url(pathname): function
H A Dnturl2path.py40 def pathname2url(p): function
H A Durllib.py37 "urlencode", "url2pathname", "pathname2url", "splittag",
49 from nturl2path import url2pathname, pathname2url namespace
51 from rourl2path import url2pathname, pathname2url namespace
58 def pathname2url(pathname): function
H A Dpydoc.py642 url = nturl2path.pathname2url(path)
/external/python/cpython3/Lib/
H A Dmacurl2path.py8 __all__ = ["url2pathname","pathname2url"]
52 def pathname2url(pathname): function
H A Dnturl2path.py40 def pathname2url(p): function
/external/tensorflow/tensorflow/python/keras/_impl/keras/utils/
H A Ddata_utils_test.py30 from six.moves.urllib.request import pathname2url namespace
57 origin = urljoin('file://', pathname2url(os.path.abspath(tar_file_path)))
76 origin = urljoin('file://', pathname2url(os.path.abspath(zip_file_path)))
/external/skia/tools/skpbench/
H A Dsheet.py160 fileuri = urlparse.urljoin('file:', urllib.pathname2url(pathname))
/external/skqp/tools/skpbench/
H A Dsheet.py160 fileuri = urlparse.urljoin('file:', urllib.pathname2url(pathname))
/external/python/cpython3/Lib/urllib/
H A Drequest.py131 'pathname2url', 'url2pathname', 'getproxies',
1649 from nturl2path import url2pathname, pathname2url namespace
1656 def pathname2url(pathname): member in class:DataHandler

Completed in 394 milliseconds