MCPcopy
hub / github.com/cool-RR/PySnooper / as_uri

Method as_uri

tests/mini_toolbox/pathlib.py:915–919  ·  view source on GitHub ↗

Return the path as a 'file' URI.

(self)

Source from the content-addressed store, hash-verified

913 return "{0}({1!r})".format(self.__class__.__name__, self.as_posix())
914
915 def as_uri(self):
916 """Return the path as a 'file' URI."""
917 if not self.is_absolute():
918 raise ValueError("relative path can't be expressed as a file URI")
919 return self._flavour.make_uri(self)
920
921 @property
922 def _cparts(self):

Callers

nothing calls this directly

Calls 2

is_absoluteMethod · 0.95
make_uriMethod · 0.45

Tested by

no test coverage detected