summaryrefslogtreecommitdiffstats
path: root/gitlint-core/gitlint/display.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-11-19 14:52:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-11-19 14:53:01 +0000
commitf3b6c222fb11c96e2f8bbaa0622f46c8ec486874 (patch)
tree0f38497775e27d3e16b20573b36dd22aa5b24f3e /gitlint-core/gitlint/display.py
parentReleasing debian version 0.17.0-1. (diff)
downloadgitlint-f3b6c222fb11c96e2f8bbaa0622f46c8ec486874.tar.xz
gitlint-f3b6c222fb11c96e2f8bbaa0622f46c8ec486874.zip
Merging upstream version 0.18.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gitlint-core/gitlint/display.py')
-rw-r--r--gitlint-core/gitlint/display.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gitlint-core/gitlint/display.py b/gitlint-core/gitlint/display.py
index c9bcb01..d21b6c3 100644
--- a/gitlint-core/gitlint/display.py
+++ b/gitlint-core/gitlint/display.py
@@ -2,14 +2,14 @@ from sys import stdout, stderr
class Display:
- """ Utility class to print stuff to an output stream (stdout by default) based on the config's verbosity """
+ """Utility class to print stuff to an output stream (stdout by default) based on the config's verbosity"""
def __init__(self, lint_config):
self.config = lint_config
def _output(self, message, verbosity, exact, stream):
- """ Output a message if the config's verbosity is >= to the given verbosity. If exact == True, the message
- will only be outputted if the given verbosity exactly matches the config's verbosity. """
+ """Output a message if the config's verbosity is >= to the given verbosity. If exact == True, the message
+ will only be outputted if the given verbosity exactly matches the config's verbosity."""
if exact:
if self.config.verbosity == verbosity:
stream.write(message + "\n")