Started using flake8 to lint; removed some of its warnings.
[python_utils.git] / ansi.py
diff --git a/ansi.py b/ansi.py
index 5fde4af56c9ef18254cd562ca19b10d853597e93..9e31b811ab978fa1ae81c3974ba991700287d867 100755 (executable)
--- 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 (