X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=test%2Flog.py;h=5fd91c794e8394ac3b1ba9ed25f3277c1c6c14db;hb=961d3631125df357c966f6ea4ee7b5fe57421c45;hp=b0254f9abee4923e31d4cd9f1abe5c2061f93344;hpb=ea2450fa2d1e8ba0295ea9861a404796100dad1e;p=vpp.git diff --git a/test/log.py b/test/log.py index b0254f9abee..5fd91c794e8 100644 --- a/test/log.py +++ b/test/log.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import sys import os @@ -11,7 +11,7 @@ single_line_delim = '-' * 78 def colorize(msg, color): - return color + msg + COLOR_RESET + return f"{color}{msg}{COLOR_RESET}" class ColorFormatter(logging.Formatter):