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.
pywikibot-commits@lists.wikimedia.org