jenkins-bot merged this change.

View Change

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

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 change 560522. To unsubscribe, or for help writing mail filters, visit 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 <info@gno.de>
Gerrit-Reviewer: D3r1ck01 <xsavitar.wiki@aol.com>
Gerrit-Reviewer: Mpaa <mpaa.wiki@gmail.com>
Gerrit-Reviewer: jenkins-bot (75)