jenkins-bot merged this change.
[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.