summaryrefslogtreecommitdiff
path: root/ansi.py
diff options
context:
space:
mode:
authorScott <[email protected]>2022-01-26 21:35:20 -0800
committerScott <[email protected]>2022-01-26 21:35:20 -0800
commite6f32fdd9b373dfcd100c7accb41f57d83c2f0a1 (patch)
treeeea4985bc43238fbd070c783441f08988f581973 /ansi.py
parent36fea7f15ed17150691b5b3ead75450e575229ef (diff)
Ahem. Still running black?
Diffstat (limited to 'ansi.py')
-rwxr-xr-xansi.py8
1 files changed, 2 insertions, 6 deletions
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 (