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

Function get_archive_formats

Lib/shutil.py:1150–1158  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

1148 "zstd'ed tar-file")
1149
1150def get_archive_formats():
1151 """Returns a list of supported formats for archiving and unarchiving.
1152
1153 Each element of the returned sequence is a tuple (name, description)
1154 """
1155 formats = [(name, registry[2]) for name, registry in
1156 _ARCHIVE_FORMATS.items()]
1157 formats.sort()
1158 return formats
1159
1160def register_archive_format(name, function, extra_args=None, description=''):
1161 """Registers an archive format.

Callers 1

Calls 2

itemsMethod · 0.45
sortMethod · 0.45

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…