-
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: make unpack_7zarchive raise ReadError for invalid files
Follow `shutil.register_unpack_format()` convention of raising a `ReadError` when the library cannot handle a file. Docstring documenting the interface: https://github.com/python/cpython/blob/22b25d1ebaab7b8c4833a8c120c8b4699a830f40/Lib/shutil.py#L1264-L1265 Example uses: https://github.com/python/cpython/blob/22b25d1ebaab7b8c4833a8c120c8b4699a830f40/Lib/shutil.py#L1292-L1293 https://github.com/python/cpython/blob/22b25d1ebaab7b8c4833a8c120c8b4699a830f40/Lib/shutil.py#L1324-L1325
- Loading branch information
1 parent
72fd6f1
commit c0ebecc
Showing
3 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters