jenkins-bot has submitted this change and it was merged.
Change subject: (bugfix) invoke Page.move correctly ......................................................................
(bugfix) invoke Page.move correctly
- Page.move() expects a title, not a Category object. Bugfix for bug 65115 I1a21e18da4f15ac8ba4eb0967fdbb64eafe5a4e6 - instantiate CategoryMoveRobot() with pep8 parameter names added in Ib77b9c80e22b84e91e53e2536e9bee7f11f6952e
Change-Id: I7b02c193fd477e434671597251b2c90b60385d76 --- M scripts/category.py 1 file changed, 4 insertions(+), 4 deletions(-)
Approvals: Withoutaname: Looks good to me, but someone else must approve Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/category.py b/scripts/category.py index 7468a48..d2d8b82 100755 --- a/scripts/category.py +++ b/scripts/category.py @@ -468,7 +468,8 @@ """ if self.newcat and self.move_oldcat and not self.newcat.exists(): if "move-categorypages" in self.site.userinfo["rights"]: - self.oldcat.move(self.newcat, reason=self.comment, movetalkpage=True) + self.oldcat.move(self.newcat.title(), reason=self.comment, + movetalkpage=True) else: self._movecat() self._movetalk() @@ -1053,9 +1054,8 @@ u'Please enter the new name of the category:') bot = CategoryMoveRobot(oldCatTitle, newCatTitle, batchMode, editSummary, inPlace, - deleteEmptySourceCat=deleteEmptySourceCat, - titleRegex=titleRegex, - withHistory=withHistory) + delete_oldcat=deleteEmptySourceCat, + title_regex=titleRegex, history=withHistory) bot.run() elif action == 'tidy': catTitle = pywikibot.input(u'Which category do you want to tidy up?')
pywikibot-commits@lists.wikimedia.org