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

Method _tarinfo

Lib/test/test_shutil.py:1619–1623  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

1617 ### shutil.make_archive
1618
1619 def _tarinfo(self, path):
1620 with tarfile.open(path) as tar:
1621 names = tar.getnames()
1622 names.sort()
1623 return tuple(names)
1624
1625 def _create_files(self, base_dir='dist'):
1626 # creating something to tar

Callers 1

test_tarfile_vs_tarMethod · 0.95

Calls 3

getnamesMethod · 0.80
openMethod · 0.45
sortMethod · 0.45

Tested by

no test coverage detected