Home
last modified time | relevance | path

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

/external/python/cpython2/Lib/test/
Dtest_macurl2path.py6 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 …]
Dtest_urllib.py811 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/
Drourl2path.py12 def url2pathname(url): function
62 print '%r -> %r' % (url, url2pathname(url))
/external/python/cpython2/Lib/
Dnturl2path.py3 def url2pathname(url): function
Dmacurl2path.py10 def url2pathname(pathname): function
Durllib.py49 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)
Durllib2.py125 from urllib import localhost, url2pathname, getproxies, proxy_bypass
1356 localfile = url2pathname(filename)
/external/python/cpython2/Tools/webchecker/
Dwebchecker.py753 path = urllib.url2pathname(urllib.unquote(url))
/external/python/cpython2/Lib/plat-mac/
Dpimp.py676 path = urllib.url2pathname(path)
/external/python/cpython2/Doc/library/
Durllib.rst281 .. function:: url2pathname(path)
/external/python/cpython2/Misc/
DNEWS5017 - Issue #11474: Fix the bug with url2pathname() handling of '/C|/' on Windows.
DHISTORY14827 - Module urllib now has two new functions url2pathname and pathname2url