jenkins-bot has submitted this change and it was merged.
Change subject: [IMPR] use format length ......................................................................
[IMPR] use format length
- Use format length instead expanding message strings by spaces
Change-Id: I56b0d48d80e4c5eceeea8beb688c0948b45dc85e --- M scripts/welcome.py 1 file changed, 4 insertions(+), 4 deletions(-)
Approvals: Mpaa: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/welcome.py b/scripts/welcome.py index ed0dd34..0ad4ac1 100755 --- a/scripts/welcome.py +++ b/scripts/welcome.py @@ -861,14 +861,14 @@ 5: 'lightblue' } staMsg = { - 0: 'MSG ', + 0: 'MSG', 1: 'NoAct', 2: 'Match', - 3: 'Skip ', + 3: 'Skip', 4: 'Warning', - 5: 'Done ', + 5: 'Done', } - pywikibot.output(color_format('{color}[{0}]{default} ', + pywikibot.output(color_format('{color}[{0:5}]{default} ', staMsg[n], color=staColor[n]), newline=False)
pywikibot-commits@lists.wikimedia.org