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

Function extract_tarball

PCbuild/get_external.py:100–104  ·  view source on GitHub ↗
(externals_dir, tarball_path, tag)

Source from the content-addressed store, hash-verified

98
99
100def extract_tarball(externals_dir, tarball_path, tag):
101 output_path = externals_dir / tag
102 with tarfile.open(tarball_path) as tf:
103 tf.extractall(os.fspath(externals_dir), filter='data')
104 return output_path
105
106
107def extract_zip(externals_dir, zip_path):

Callers 1

mainFunction · 0.85

Calls 2

openMethod · 0.45
extractallMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…