jenkins-bot has submitted this change and it was merged.
Change subject: Fix string formatting in copyAndKeep. ......................................................................
Fix string formatting in copyAndKeep.
According to Python docs, section 5.6.2, "When the right argument is a dictionary (or other mapping type), then the formats in the string must include a parenthesised mapping key into that dictionary inserted immediately after the '%' character. The mapping key selects the value to be formatted from the mapping."
This is not the case here.
Change-Id: I3ee69a1d44b4109fd98837be12af39a23eba2ae3 --- M pywikibot/page.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Merlijn van Deen: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/page.py b/pywikibot/page.py index 94694da..a103aca 100644 --- a/pywikibot/page.py +++ b/pywikibot/page.py @@ -1948,7 +1948,7 @@ else: pywikibot.output( 'Moving text from %s to %s.' - % {'oldcat': self.title(), 'authors': targetCat.title()}) + % (self.title(), targetCat.title())) authors = ', '.join(self.contributingUsers()) creationSummary = message % (self.title(), authors) newtext = self.get()
pywikibot-commits@lists.wikimedia.org