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

Method _format_parsed_parts

Lib/pathlib/__init__.py:264–269  ·  view source on GitHub ↗
(cls, drv, root, tail)

Source from the content-addressed store, hash-verified

262
263 @classmethod
264 def _format_parsed_parts(cls, drv, root, tail):
265 if drv or root:
266 return drv + root + cls.parser.sep.join(tail)
267 elif tail and cls.parser.splitdrive(tail[0])[0]:
268 tail = ['.'] + tail
269 return cls.parser.sep.join(tail)
270
271 def _from_parsed_parts(self, drv, root, tail):
272 path = self._from_parsed_string(self._format_parsed_parts(drv, root, tail))

Callers 2

__str__Method · 0.95
_from_parsed_partsMethod · 0.95

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected