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

Method parent

Lib/zipfile/_path/__init__.py:449–455  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

447
448 @property
449 def parent(self):
450 if not self.at:
451 return self.filename.parent
452 parent_at = posixpath.dirname(self.at.rstrip('/'))
453 if parent_at:
454 parent_at += '/'
455 return self._next(parent_at)

Callers

nothing calls this directly

Calls 3

_nextMethod · 0.95
dirnameMethod · 0.45
rstripMethod · 0.45

Tested by

no test coverage detected