-
Notifications
You must be signed in to change notification settings - Fork 510
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reworked Archive.add(); addresses #3126.
src/__init__.py: Simplified the logic so we systematically switch on the type of `content`. This also avoids behaviour depending on whether str(content) (when content is not itself a string) happens to match an existing file or directory. Also removed the local variables and pass params explicitly to local fn `make_subarch()`. Also use `assert` if we are passed incorrect types, instead of explicitly raising an exception. tests/test_general.py: Added test_archive_3126() for #3126.
- Loading branch information
1 parent
ab6600c
commit b6a12af
Showing
2 changed files
with
86 additions
and
98 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