jenkins-bot merged this change.

View Change

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

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()

To view, visit change 462312. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I04d484117fc8a7a37ce93a82703ba5c3c66a1c7e
Gerrit-Change-Number: 462312
Gerrit-PatchSet: 1
Gerrit-Owner: D3r1ck01 <alangiderick@gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb@gmail.com>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot (75)