jenkins-bot merged this change.

View Change

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

- use str.format(...) instead of modulo for type specifier
arguments.

Change-Id: I38e651d2757fe7034bc1855bd601277e8f4fc68b
---
M scripts/makecat.py
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/scripts/makecat.py b/scripts/makecat.py
index bb3f43f..935923e 100755
--- a/scripts/makecat.py
+++ b/scripts/makecat.py
@@ -259,10 +259,9 @@

bot = MakeCatBot(site=mysite, **options)

- workingcat = pywikibot.Category(mysite,
- '%s%s'
- % (mysite.namespaces.CATEGORY,
- workingcatname))
+ workingcat = pywikibot.Category(mysite, '{0}{1}'
+ .format(mysite.namespaces.CATEGORY,
+ workingcatname))
filename = pywikibot.config.datafilepath(
'category',
workingcatname.encode('ascii', 'xmlcharrefreplace').decode('ascii') +

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

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