jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/462911 )
Change subject: [cleanup] cleanup scripts/maintenance/colors.py ......................................................................
[cleanup] cleanup scripts/maintenance/colors.py
- use str.format(...) instead of modulo to substitude type specifier arguments with placeholders
Change-Id: I7efe02b0e263229f2514d379a4698485e1c2f1eb --- M scripts/maintenance/colors.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/maintenance/colors.py b/scripts/maintenance/colors.py index 7c5c558..28c3086 100644 --- a/scripts/maintenance/colors.py +++ b/scripts/maintenance/colors.py @@ -37,7 +37,7 @@ line += ' ' line += color_format('{color}{0}{default}', fg_col.ljust(max_len_fg_colors), - color='%s;%s' % (fg_col, bg_col)) + color='{};{}'.format(fg_col, bg_col))
line = '{0} {1}'.format(bg_col.ljust(max_len_bc_color), line) pywikibot.output(line)
pywikibot-commits@lists.wikimedia.org