jenkins-bot has submitted this change and it was merged.

Change subject: cfd.py: remove deprecated CategoryRemoveRobot
......................................................................


cfd.py: remove deprecated CategoryRemoveRobot

Replaced with CategoryMoveRobot.
Also replaced dprecated parameters.

See also 69829-CategoryRemoveRobot can not be instantiated.

Change-Id: I05178711282e6f3e8efa8c0bf9e9fb3980eddba8
---
M scripts/cfd.py
1 file changed, 7 insertions(+), 7 deletions(-)

Approvals:
  John Vandenberg: Looks good to me, approved
  XZise: Looks good to me, but someone else must approve
  jenkins-bot: Verified



diff --git a/scripts/cfd.py b/scripts/cfd.py
index e84da60..ab2b0e9 100644
--- a/scripts/cfd.py
+++ b/scripts/cfd.py
@@ -66,7 +66,7 @@
     robot = None
 
     m = ReCheck()
-    for line in page.get().split("\n"):
+    for line in page.text.split("\n"):
         if nobots.search(line):
             # NO BOTS!!!
             pass
@@ -114,9 +114,9 @@
                 pywikibot.output(summary, toStdout=True)
                 robot = None
             else:
-                robot = category.CategoryMoveRobot(oldCatTitle=src, 
newCatTitle=dest, batchMode=True,
-                                                   editSummary=summary, 
inPlace=True, moveCatPage=True,
-                                                   deleteEmptySourceCat=True, 
useSummaryForDeletion=True)
+                robot = category.CategoryMoveRobot(oldcat=src, newcat=dest, 
batch=True,
+                                                   comment=summary, 
inplace=True, move_oldcat=True,
+                                                   delete_oldcat=True, 
deletion_comment=True)
         elif m.check(deletecat, line):
             src = m.result.group(1)
             # I currently don't see any reason to handle these two cases 
separately, though
@@ -127,8 +127,8 @@
                 summary = "Robot - Removing category " + src + " per 
[[WP:CFD|CFD]] at " + thisDay + "."
             else:
                 continue
-            robot = category.CategoryRemoveRobot(catTitle=src, batchMode=True, 
editSummary=summary,
-                                                 useSummaryForDeletion=True, 
inPlace=True)
+            robot = category.CategoryMoveRobot(oldcat=src, batch=True, 
comment=summary,
+                                                 deletion_comment=True, 
inplace=True)
         else:
             # This line does not fit any of our regular expressions, so ignore 
it.
             pass
@@ -148,7 +148,7 @@
 def findDay(pageTitle, oldDay):
     page = pywikibot.Page(pywikibot.Site(), u"Category:" + pageTitle)
     try:
-        pageSrc = page.get()
+        pageSrc = page.text
         m = findday.search(pageSrc)
     except pywikibot.NoPage:
         m = None

-- 
To view, visit https://gerrit.wikimedia.org/r/155529
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I05178711282e6f3e8efa8c0bf9e9fb3980eddba8
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Mpaa <[email protected]>
Gerrit-Reviewer: John Vandenberg <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: XZise <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to