MCPcopy Index your code
hub / github.com/RustPython/RustPython / get_unpack_formats

Function get_unpack_formats

Lib/shutil.py:1248–1257  ·  view source on GitHub ↗

Returns a list of supported formats for unpacking. Each element of the returned sequence is a tuple (name, extensions, description)

()

Source from the content-addressed store, hash-verified

1246
1247
1248def get_unpack_formats():
1249 """Returns a list of supported formats for unpacking.
1250
1251 Each element of the returned sequence is a tuple
1252 (name, extensions, description)
1253 """
1254 formats = [(name, info[0], info[3]) for name, info in
1255 _UNPACK_FORMATS.items()]
1256 formats.sort()
1257 return formats
1258
1259def _check_unpack_options(extensions, function, extra_args):
1260 """Checks what gets registered as an unpacker."""

Callers 1

test_unpack_registryMethod · 0.90

Calls 2

itemsMethod · 0.45
sortMethod · 0.45

Tested by 1

test_unpack_registryMethod · 0.72