jenkins-bot merged this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[cleanup] cleanup scripts/watchlist.py

- remove preleading "u" from strings
- use single quotes for string literals

Change-Id: I6c8b156dfbb5ad5b2b1429e4596f777106cc1089
---
M scripts/watchlist.py
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/watchlist.py b/scripts/watchlist.py
index 3418626..e9aa687 100755
--- a/scripts/watchlist.py
+++ b/scripts/watchlist.py
@@ -110,7 +110,7 @@
else:
site = pywikibot.Site()
watchlist = refresh(site, sysop=sysop)
- pywikibot.output(u'%i pages in the watchlist.' % len(watchlist))
+ pywikibot.output('{} pages in the watchlist.'.format(len(watchlist)))
for page in watchlist:
try:
pywikibot.stdout(page.title())
@@ -118,5 +118,5 @@
pywikibot.exception()


-if __name__ == "__main__":
+if __name__ == '__main__':
main()

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

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