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

Method zip_children

Lib/importlib/metadata/__init__.py:852–860  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

850 return []
851
852 def zip_children(self):
853 # deferred for performance (python/importlib_metadata#502)
854 import zipfile
855
856 zip_path = zipfile.Path(self.root)
857 names = zip_path.root.namelist()
858 self.joinpath = zip_path.joinpath
859
860 return dict.fromkeys(child.split(posixpath.sep, 1)[0] for child in names)
861
862 def search(self, name):
863 return self.lookup(self.mtime).search(name)

Callers 1

childrenMethod · 0.95

Calls 3

namelistMethod · 0.45
fromkeysMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected