jenkins-bot has submitted this change and it was merged.
Change subject: color logging fixes ......................................................................
color logging fixes
afe2555d7 implemented color_format, which uses str.format {} syntax, but two messages in reflinks were not converted from %s syntax to {}.
Bug: T123887 Change-Id: I8e6916153428689dc4c6410bebfc9c771d8813d8 --- M scripts/reflinks.py 1 file changed, 3 insertions(+), 3 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/reflinks.py b/scripts/reflinks.py index 0474deb..814e1ce 100755 --- a/scripts/reflinks.py +++ b/scripts/reflinks.py @@ -38,7 +38,7 @@ one from i18n/reflinks.py """ # (C) Nicolas Dumazet (NicDumZ), 2008 -# (C) Pywikibot team, 2008-2015 +# (C) Pywikibot team, 2008-2016 # # Distributed under the terms of the MIT license. # @@ -587,7 +587,7 @@ # example : http://www.adminet.com/jo/20010615%C2%A6/ECOC0100037D.html # in [[fr:Cyanure]] pywikibot.output(color_format( - '{lightred}Bad link{default} : %s in %s', + '{lightred}Bad link{default} : {0} in {1}', ref.url, page.title(asLink=True))) continue except (URLError, @@ -638,7 +638,7 @@ continue elif not self.MIME.search(contentType): pywikibot.output(color_format( - '{lightyellow}WARNING{default} : media : %s ', + '{lightyellow}WARNING{default} : media : {0} ', ref.link)) repl = ref.refLink() new_text = new_text.replace(match.group(), repl)