jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/462488 )
Change subject: [cleanup] cleanup scripts/makecat.py ......................................................................
[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(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
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') +