Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEAT] Add deprecation warnings for textlib/deprecation redirects
It's adding a function which dynamically can create a redirect to another function and warn because of deprecation when the redirected function is executed. It works similar to the @deprecated decorator but doesn't require the old function. All functions which from 'textlib' which were simply redirected from 'pywikibot' to the 'textlib' module are created with this function. Also 'deprecated' and 'deprecate_arg' are marked as deprecated too. Change-Id: I69dbf351c22fd0caacbf047ae38aca067f8cef96
- Loading branch information
Showing
2 changed files
with
79 additions
and
20 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