Searched refs:url2pathname (Results 1 – 12 of 12) sorted by relevance
/external/python/cpython2/Lib/test/ |
D | test_macurl2path.py | 6 self.assertEqual(":index.html", macurl2path.url2pathname("index.html")) 7 self.assertEqual(":bar:index.html", macurl2path.url2pathname("bar/index.html")) 8 self.assertEqual("foo:bar:index.html", macurl2path.url2pathname("/foo/bar/index.html")) 9 self.assertEqual("foo:bar", macurl2path.url2pathname("/foo/bar/")) 10 self.assertEqual("", macurl2path.url2pathname("/")) 11 self.assertRaises(RuntimeError, macurl2path.url2pathname, "http://foo.com") 12 self.assertEqual("index.html", macurl2path.url2pathname("///index.html")) 13 self.assertRaises(RuntimeError, macurl2path.url2pathname, "//index.html") 14 self.assertEqual(":index.html", macurl2path.url2pathname("./index.html")) 15 self.assertEqual(":index.html", macurl2path.url2pathname("foo/../index.html")) [all …]
|
D | test_urllib.py | 811 result = urllib.url2pathname(expected_url) 826 result = urllib.url2pathname(result) 838 result = urllib.url2pathname(given) 849 result = urllib.url2pathname(url) 855 result = urllib.url2pathname(given)
|
/external/python/cpython2/Lib/plat-riscos/ |
D | rourl2path.py | 12 def url2pathname(url): function 62 print '%r -> %r' % (url, url2pathname(url))
|
/external/python/cpython2/Lib/ |
D | nturl2path.py | 3 def url2pathname(url): function
|
D | macurl2path.py | 10 def url2pathname(pathname): function
|
D | urllib.py | 49 from nturl2path import url2pathname, pathname2url 51 from rourl2path import url2pathname, pathname2url 53 def url2pathname(pathname): function 242 return url2pathname(splithost(url1)[1]), hdrs 479 localname = url2pathname(file)
|
D | urllib2.py | 125 from urllib import localhost, url2pathname, getproxies, proxy_bypass 1356 localfile = url2pathname(filename)
|
/external/python/cpython2/Tools/webchecker/ |
D | webchecker.py | 753 path = urllib.url2pathname(urllib.unquote(url))
|
/external/python/cpython2/Lib/plat-mac/ |
D | pimp.py | 676 path = urllib.url2pathname(path)
|
/external/python/cpython2/Doc/library/ |
D | urllib.rst | 281 .. function:: url2pathname(path)
|
/external/python/cpython2/Misc/ |
D | NEWS | 5017 - Issue #11474: Fix the bug with url2pathname() handling of '/C|/' on Windows.
|
D | HISTORY | 14827 - Module urllib now has two new functions url2pathname and pathname2url
|