X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=ansi.py;h=9e31b811ab978fa1ae81c3974ba991700287d867;hb=435701f95aed73615a192c1e35c99df679817105;hp=5fde4af56c9ef18254cd562ca19b10d853597e93;hpb=36fea7f15ed17150691b5b3ead75450e575229ef;p=python_utils.git diff --git a/ansi.py b/ansi.py index 5fde4af..9e31b81 100755 --- a/ansi.py +++ b/ansi.py @@ -1773,9 +1773,7 @@ def fg( green = 0 if blue is None: blue = 0 - if ( - is_16color(red) and is_16color(green) and is_16color(blue) - ) or force_16color: + if (is_16color(red) and is_16color(green) and is_16color(blue)) or force_16color: logger.debug("Using 16-color strategy") return fg_16color(red, green, blue) if ( @@ -1878,9 +1876,7 @@ def bg( green = 0 if blue is None: blue = 0 - if ( - is_16color(red) and is_16color(green) and is_16color(blue) - ) or force_16color: + if (is_16color(red) and is_16color(green) and is_16color(blue)) or force_16color: logger.debug("Using 16-color strategy") return bg_16color(red, green, blue) if (