Searched refs:pathname2url (Results 1 – 8 of 8) sorted by relevance
21 from nturl2path import url2pathname, pathname2url726 return "file://%s" % urllib.request.pathname2url(filePath)1493 result = urllib.request.pathname2url(expected_path)1507 result = urllib.request.pathname2url(given)1518 result = urllib.request.pathname2url(given)1535 result = urllib.request.pathname2url(given)1541 result = urllib.request.pathname2url(given)1595 fileurl = "file:" + urllib.request.pathname2url(tmpfile)1671 self.assertEqual(url2pathname(pathname2url(path)), path)1676 self.assertEqual(pathname2url("C:"), '///C:')[all …]
692 urlpath = urllib.request.pathname2url(path)
45 def pathname2url(p): function
160 fileuri = urlparse.urljoin('file:', urllib.pathname2url(pathname))
1679 from nturl2path import url2pathname, pathname2url1686 def pathname2url(pathname): function
154 .. function:: pathname2url(path)
27713 Don't convert URLs to URLs using pathname2url.27973 As Des Barry points out, we need to call pathname2url(file) in two32206 - Module urllib now has two new functions url2pathname and pathname2url