jenkins-bot merged this change.

View Change

Approvals: Framawiki: Looks good to me, approved jenkins-bot: Verified
[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(-)

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

To view, visit change 427663. To unsubscribe, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I9acb38602a2bdca2e21c8bcd30166227577714fe
Gerrit-Change-Number: 427663
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Framawiki <framawiki@tools.wmflabs.org>
Gerrit-Reviewer: John Vandenberg <jayvdb@gmail.com>
Gerrit-Reviewer: Zoranzoki21 <zorandori4444@gmail.com>
Gerrit-Reviewer: jenkins-bot <>