jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/462312 )
Change subject: [cleanup] cleanup scripts/selflink.py ......................................................................
[cleanup] cleanup scripts/selflink.py
- use single quotes for string literals - use str.format(...) instead of modulo for type specifiers arguments
Change-Id: I04d484117fc8a7a37ce93a82703ba5c3c66a1c7e --- M scripts/selflink.py 1 file changed, 3 insertions(+), 3 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/selflink.py b/scripts/selflink.py index 03c3ebb..d760fad 100755 --- a/scripts/selflink.py +++ b/scripts/selflink.py @@ -67,8 +67,8 @@ # https://de.wikipedia.org/w/index.php?diff=next&oldid=35721641 if '<imagemap>' in self.current_page.text: pywikibot.output( - u'Skipping page %s because it contains an image map.' - % self.current_page.title(as_link=True)) + 'Skipping page {0} because it contains an image map.' + .format(self.current_page.title(as_link=True))) return self.unlink(self.current_page)
@@ -103,5 +103,5 @@ return True
-if __name__ == "__main__": +if __name__ == '__main__': main()