-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved NocaseDict and internal utility functions into their own submod…
…ules Details: - For general cleanup, moved class `NocaseDict` into its own submodule `_nocasedict.py`. Its unit test cases already had been in a separate sub module (`test_nocasedict.py`). - In order to untangle existing circular import dependencies, as well as new ones that were created by the move of NocaseDict, moved the following utility functions into a new submodule `_utils.py`: - `_stacklevel_above_module()` - `_ensure_unicode()` - `_ensure_bytes()` - `_ensure_bool()` - `_hash_name()` - `_hash_item()` - `_hash_dict()` - Adjusted any code that imports the moved symbols, to now import them from their new submodules. As part of that, several runtime-imports could be moved back to become module-level imports. - Adjusted the documentatzion for the new module structure. This did not result in any changes to the generated documentation. Signed-off-by: Andreas Maier <maiera@de.ibm.com>
- Loading branch information
1 parent
1438d5c
commit 6fc3e89
Showing
24 changed files
with
661 additions
and
574 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
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
Oops, something went wrong.