jenkins-bot merged this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[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.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I7efe02b0e263229f2514d379a4698485e1c2f1eb
Gerrit-Change-Number: 462911
Gerrit-PatchSet: 1
Gerrit-Owner: D3r1ck01 <alangiderick@gmail.com>
Gerrit-Reviewer: D3r1ck01 <alangiderick@gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb@gmail.com>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot (75)