Page MenuHomePhabricator

Create a script to update deprecated functions and methods
Closed, DeclinedPublic

Description

There was a script compat2core.py which resides in archive now which converted compat scripts to core or gives usefull hints for conversion. See also https://www.mediawiki.org/wiki/Manual:Pywikibot/compat-to-core_conversion

Now we still have deprecated code parts which are to be replaced. Create a script to convert deprecated code parts or give reliable hints for foreign script to keep them up to date.

Related Objects

Event Timeline

Xqt triaged this task as Low priority.May 25 2021, 9:16 AM

Change 697918 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [IMPR] Restore compat2core.py script

https://gerrit.wikimedia.org/r/697918

Change 697918 merged by jenkins-bot:

[pywikibot/core@master] [IMPR] Restore compat2core.py script

https://gerrit.wikimedia.org/r/697918

This script is no longer maintained. A better approach would be to log deprecation warnings into a separate log file.