jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/462466 )
Change subject: [cleanup] cleanup scripts/ndashredir.py ......................................................................
[cleanup] cleanup scripts/ndashredir.py
- use single quotes for string literals and double quotes **only** if they consist of single quotes within them - use str.format(...) instead of modulo for type specifier arguments
Change-Id: I9f0d0409495b4c2e6280be886b1fabe94576e974 --- M scripts/ndashredir.py 1 file changed, 5 insertions(+), 5 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/ndashredir.py b/scripts/ndashredir.py index 86dd098..7339090 100644 --- a/scripts/ndashredir.py +++ b/scripts/ndashredir.py @@ -91,8 +91,8 @@
# skip unchanged if redir.title() == origin: - pywikibot.output('No need to process %s, skipping…' - % redir.title()) + pywikibot.output('No need to process {0}, skipping...' + .format(redir.title())) # suggest -reversed parameter if '-' in origin and not self.getOption('reversed'): pywikibot.output('Consider using -reversed parameter ' @@ -100,13 +100,13 @@ else: # skip existing if redir.exists(): - pywikibot.output('%s already exists, skipping…' - % redir.title()) + pywikibot.output('{0} already exists, skipping...' + .format(redir.title())) else: # confirm and save redirect if self.user_confirm( color_format( - 'Redirect from {lightblue}{0}{default} doesn't exist ' + "Redirect from {lightblue}{0}{default} doesn't exist " 'yet.\nDo you want to create it?', redir.title())): # If summary option is None, it takes the default
pywikibot-commits@lists.wikimedia.org