Returns a list of supported formats for archiving and unarchiving. Each element of the returned sequence is a tuple (name, description)
()
| 1148 | "zstd'ed tar-file") |
| 1149 | |
| 1150 | def 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 | |
| 1160 | def register_archive_format(name, function, extra_args=None, description=''): |
| 1161 | """Registers an archive format. |
searching dependent graphs…