1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

py:colour: colour_if_wanted() returns the result

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Douglas Bagnall 2022-09-09 14:35:12 +12:00 committed by Andrew Bartlett
parent 4f30d06a36
commit 4c623356ce

View File

@ -122,7 +122,9 @@ def is_colour_wanted(stream, hint='auto'):
def colour_if_wanted(stream, hint='auto'):
if is_colour_wanted(stream, hint):
wanted = is_colour_wanted(stream, hint)
if wanted:
switch_colour_on()
else:
switch_colour_off()
return wanted