MCPcopy Index your code
hub / github.com/python/cpython / constructLocalFileUrl

Method constructLocalFileUrl

Lib/test/test_urllib.py:635–637  ·  view source on GitHub ↗
(self, filePath)

Source from the content-addressed store, hash-verified

633 except: pass
634
635 def constructLocalFileUrl(self, filePath):
636 filePath = os.path.abspath(filePath)
637 return urllib.request.pathname2url(filePath, add_scheme=True)
638
639 def createNewTempFile(self, data=b""):
640 """Creates a new temporary file containing the specified data,

Callers 5

test_copyMethod · 0.95
test_reporthookMethod · 0.95

Calls 1

abspathMethod · 0.45

Tested by

no test coverage detected