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:
parent
4f30d06a36
commit
4c623356ce
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user