Home
last modified time | relevance | path

Searched refs:url2pathname (Results 1 – 19 of 19) 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.py812 result = urllib.url2pathname(expected_url)
827 result = urllib.url2pathname(result)
839 result = urllib.url2pathname(given)
850 result = urllib.url2pathname(url)
856 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/cpython3/Lib/test/
Dtest_urllib.py19 from nturl2path import url2pathname, pathname2url
1495 result = urllib.request.url2pathname(expected_url)
1510 result = urllib.request.url2pathname(result)
1522 result = urllib.request.url2pathname(given)
1533 result = urllib.request.url2pathname(url)
1539 result = urllib.request.url2pathname(given)
1629 self.assertEqual(url2pathname("///C|"), 'C:')
1630 self.assertEqual(url2pathname("///C:"), 'C:')
1631 self.assertEqual(url2pathname("///C|/"), 'C:\\')
1635 self.assertEqual(url2pathname("///C/test/"), r'\\\C\test' '\\')
[all …]
/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/cpython3/Lib/
Dnturl2path.py8 def url2pathname(url): function
/external/python/cpython3/Lib/urllib/
Drequest.py1497 localfile = url2pathname(filename)
1673 from nturl2path import url2pathname, pathname2url
1675 def url2pathname(pathname): function
1813 return url2pathname(_splithost(url1)[1]), hdrs
2007 localname = url2pathname(file)
/external/python/setuptools/setuptools/
Dpackage_index.py819 return urllib.request.url2pathname(urllib.parse.urlparse(url)[2])
1094 filename = urllib.request.url2pathname(path)
/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.rst286 .. function:: url2pathname(path)
/external/python/six/documentation/
Dindex.rst759 * :func:`py2:urllib.url2pathname`
/external/python/cpython2/Misc/NEWS.d/
D2.7.2rc1.rst493 Fix the bug with url2pathname() handling of '/C|/' on Windows. Patch by
/external/python/cpython3/Doc/library/
Durllib.request.rst156 .. function:: url2pathname(path)
/external/python/cpython3/Misc/
DHISTORY9777 - Issue #11474: Fix the bug with url2pathname() handling of '/C|/' on Windows.
32206 - Module urllib now has two new functions url2pathname and pathname2url
/external/python/cpython2/Misc/
DHISTORY14827 - Module urllib now has two new functions url2pathname and pathname2url