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

Function extract_zip

PCbuild/get_external.py:107–110  ·  view source on GitHub ↗
(externals_dir, zip_path)

Source from the content-addressed store, hash-verified

105
106
107def extract_zip(externals_dir, zip_path):
108 with zipfile.ZipFile(os.fspath(zip_path)) as zf:
109 zf.extractall(os.fspath(externals_dir))
110 return externals_dir / zf.namelist()[0].split('/')[0]
111
112
113def parse_args():

Callers 1

mainFunction · 0.85

Calls 3

extractallMethod · 0.45
splitMethod · 0.45
namelistMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…