diff options
Diffstat (limited to 'pylint/reporters/text.py')
-rw-r--r-- | pylint/reporters/text.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/pylint/reporters/text.py b/pylint/reporters/text.py index 865b3c84d..6d9a05f78 100644 --- a/pylint/reporters/text.py +++ b/pylint/reporters/text.py @@ -147,7 +147,7 @@ class TextReporter(BaseReporter): """manage message of different type and in the context of path""" if msg.module not in self._modules: if msg.module: - self.writeln("************* Module %s" % msg.module) + self.writeln(f"************* Module {msg.module}") self._modules.add(msg.module) else: self.writeln("************* ") @@ -171,8 +171,7 @@ class ParseableTextReporter(TextReporter): def __init__(self, output=None): warnings.warn( - "%s output format is deprecated. This is equivalent " - "to --msg-template=%s" % (self.name, self.line_format), + f"{self.name} output format is deprecated. This is equivalent to --msg-template={self.line_format}", DeprecationWarning, ) TextReporter.__init__(self, output) @@ -227,10 +226,10 @@ class ColorizedTextReporter(TextReporter): color, style = self._get_decoration("S") if msg.module: modsep = colorize_ansi( - "************* Module %s" % msg.module, color, style + f"************* Module {msg.module}", color, style ) else: - modsep = colorize_ansi("************* %s" % msg.module, color, style) + modsep = colorize_ansi(f"************* {msg.module}", color, style) self.writeln(modsep) self._modules.add(msg.module) color, style = self._get_decoration(msg.C) |