jenkins-bot merged this change.
[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(-)
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)
To view, visit change 462911. To unsubscribe, or for help writing mail filters, visit settings.