[output] make it easier to disable output to stdout

allow 'output.mode' to be set to any falsy value
instead of requiring it to be the string "null"
This commit is contained in:
Mike Fährmann
2024-10-28 14:49:52 +01:00
parent 2bbae0e98d
commit e93b8efe7b

View File

@@ -331,6 +331,8 @@ def select():
output = PipeOutput()
elif isinstance(mode, dict):
output = CustomOutput(mode)
elif not mode:
output = NullOutput()
else:
output = {
"default" : PipeOutput,