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

Function _find_unpack_format

Lib/shutil.py:1382–1387  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

1380 "zstd'ed tar-file")
1381
1382def _find_unpack_format(filename):
1383 for name, info in _UNPACK_FORMATS.items():
1384 for extension in info[0]:
1385 if filename.endswith(extension):
1386 return name
1387 return None
1388
1389def unpack_archive(filename, extract_dir=None, format=None, *, filter=None):
1390 """Unpack an archive.

Callers 1

unpack_archiveFunction · 0.85

Calls 2

itemsMethod · 0.45
endswithMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…