-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unused and obsolete language extensions and utilities (#3801)
The `aiida.common.lang` module hosts a variety of utilities that extend the base python language. Many of these were backports for python 2, which since now that we support python 3, have become obsolete. Some also simply were not used: * `abstractclassmethod`: now available in `abc.abstractclassmethod` * `abstractstaticmethod`: now available in `abc.abstractstaticmethod` * `combomethod`: not used at all * `EmptyContextManager`: from py3.4 `contextlib.suppress()` * `protected_decorator`: only used in two places, but with `check=False` so it would never actually raise when the method was called from outside the class. What is worse, the `report` method is only useful when callable from the outside. All in all, it is best to remove this whole concept.
- Loading branch information
Showing
7 changed files
with
17 additions
and
237 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
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 was deleted.
Oops, something went wrong.