/external/python/cpython2/Lib/test/ |
H A 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("di [all...] |
H A D | test_urllib.py | 398 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 D | test_pydoc.py | 321 mod_url = nturl2path.pathname2url(mod_file)
|
H A D | test_urllib2.py | 33 # urllib.pathname2url works, unfortunately... 615 urlpath = urllib.pathname2url(path)
|
/external/python/cpython3/Lib/test/ |
H A 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("di [all...] |
H A D | test_urllib.py | 19 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 D | test_urllib2.py | 39 u, p = context.pop('url2pathname'), context.pop('pathname2url') 682 urlpath = urllib.request.pathname2url(path)
|
/external/python/cpython2/Lib/plat-riscos/ |
H A D | rourl2path.py | 8 __all__ = ["url2pathname","pathname2url"] 48 def pathname2url(pathname): function 67 print '%r -> %r' % (path, pathname2url(path))
|
/external/python/cpython2/Lib/ |
H A D | macurl2path.py | 8 __all__ = ["url2pathname","pathname2url"] 52 def pathname2url(pathname): function
|
H A D | nturl2path.py | 40 def pathname2url(p): function
|
H A D | urllib.py | 37 "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 D | pydoc.py | 642 url = nturl2path.pathname2url(path)
|
/external/python/cpython3/Lib/ |
H A D | macurl2path.py | 8 __all__ = ["url2pathname","pathname2url"] 52 def pathname2url(pathname): function
|
H A D | nturl2path.py | 40 def pathname2url(p): function
|
/external/tensorflow/tensorflow/python/keras/_impl/keras/utils/ |
H A D | data_utils_test.py | 30 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 D | sheet.py | 160 fileuri = urlparse.urljoin('file:', urllib.pathname2url(pathname))
|
/external/skqp/tools/skpbench/ |
H A D | sheet.py | 160 fileuri = urlparse.urljoin('file:', urllib.pathname2url(pathname))
|
/external/python/cpython3/Lib/urllib/ |
H A D | request.py | 131 'pathname2url', 'url2pathname', 'getproxies', 1649 from nturl2path import url2pathname, pathname2url namespace 1656 def pathname2url(pathname): member in class:DataHandler
|