jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/427663 )
Change subject: [compat] Update conversion description ......................................................................
[compat] Update conversion description
Old compat modules catlib, userlib and query could be easily replaced by its core equivalent. There is no need to use our compat module. See also the deprecation warning for these replacements.
Bug: T183085 Change-Id: I9acb38602a2bdca2e21c8bcd30166227577714fe --- M README-conversion.txt 1 file changed, 4 insertions(+), 3 deletions(-)
Approvals: Framawiki: Looks good to me, approved jenkins-bot: Verified
diff --git a/README-conversion.txt b/README-conversion.txt index d89dec1..1d17d22 100644 --- a/README-conversion.txt +++ b/README-conversion.txt @@ -29,9 +29,10 @@ change "import wikipedia" to "import pywikibot" change "import pagegenerators" to "from pywikibot import pagegenerators" change "import config" to "from pywikibot import config" - change "import catlib" to "from pywikibot.compat import catlib" - change "import query" to "from pywikibot.compat import query" - change "import userlib" to "from pywikibot.compat import userlib" + change "catlib.Category" to "pywikibot.Category" + change "catlib.change_category(page, ...)" to "page.change_category(...)" + change "query.GetData(request)" to "pywikibot.data.api.request(**request).submit()" + change "userlib.User" to "pywikibot.User" change "wikipedia." to "pywikibot."
wikipedia.setAction() no longer works; you must revise the script to pass an
pywikibot-commits@lists.wikimedia.org