jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/511919 )
Change subject: [bugfix] color_format needs indexed replacement fields in Python 2 ......................................................................
[bugfix] color_format needs indexed replacement fields in Python 2
pywikibot.tools.formatter.color_format needs indexed replacement fields in Python 2 even Python 2.7 does not need indexed fields for str.format().
Bug: T224140 Change-Id: Id848d585655ba6c7427789619e55dc2b7bfb8a83 --- M pwb.py 1 file changed, 2 insertions(+), 2 deletions(-)
Approvals: Dvorapa: Looks good to me, approved jenkins-bot: Verified
diff --git a/pwb.py b/pwb.py index cd0324a..44f95da 100755 --- a/pwb.py +++ b/pwb.py @@ -204,8 +204,8 @@ wait_time = config.pwb_autostart_waittime output(color_format( 'NOTE: Starting the most similar script ' - '{lightyellow}{}.py{default}\n' - ' in {} seconds; type CTRL-C to stop.', + '{lightyellow}{0}.py{default}\n' + ' in {1} seconds; type CTRL-C to stop.', script, wait_time)) try: sleep(wait_time) # Wait a bit to let it be cancelled
pywikibot-commits@lists.wikimedia.org