jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/560522 )

Change subject: [bugfix] fmt parameter of listpages.Formatter.output must be a 
string
......................................................................

[bugfix] fmt parameter of listpages.Formatter.output must be a string

The default fmt parameter of listpages.Formatter.output method
is a format string and must be a string type.

detached from Ie7dcdd45b

Change-Id: I15ec228d29d7bc264191ef78b58f692368d10d83
---
M scripts/listpages.py
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  D3r1ck01: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/scripts/listpages.py b/scripts/listpages.py
index f13a861..cf20cd6 100755
--- a/scripts/listpages.py
+++ b/scripts/listpages.py
@@ -153,7 +153,7 @@
             except pywikibot.Error:
                 self.trs_title = '{0}:{1}'.format(default, page._link.title)

-    def output(self, num=None, fmt=1):
+    def output(self, num=None, fmt='1'):
         """Output formatted string."""
         fmt = self.fmt_options.get(fmt, fmt)
         # If selected format requires trs_title, outputlang must be set.

--
To view, visit https://gerrit.wikimedia.org/r/560522
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I15ec228d29d7bc264191ef78b58f692368d10d83
Gerrit-Change-Number: 560522
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: D3r1ck01 <[email protected]>
Gerrit-Reviewer: Mpaa <[email protected]>
Gerrit-Reviewer: jenkins-bot (75)
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to