summaryrefslogtreecommitdiff
path: root/ansi.py
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2022-02-03 14:18:37 -0800
committerScott Gasch <[email protected]>2022-02-03 14:18:37 -0800
commit713a609bd19d491de03debf8a4a6ddf2540b13dc (patch)
tree6593978162d3c11c3a54e44a770aded4abc79704 /ansi.py
parenteb1c6392095947b3205c4d52cd9b1507e6cd776b (diff)
Change settings in flake8 and black.
Diffstat (limited to 'ansi.py')
-rwxr-xr-xansi.py13
1 files changed, 3 insertions, 10 deletions
diff --git a/ansi.py b/ansi.py
index 02741e1..1633fdd 100755
--- a/ansi.py
+++ b/ansi.py
@@ -1776,9 +1776,7 @@ def fg(
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 (
- is_216color(red) and is_216color(green) and is_216color(blue)
- ) or force_216color:
+ if (is_216color(red) and is_216color(green) and is_216color(blue)) or force_216color:
logger.debug("Using 216-color strategy")
return fg_216color(red, green, blue)
logger.debug("Using 24-bit color strategy")
@@ -1880,9 +1878,7 @@ def bg(
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 (
- is_216color(red) and is_216color(green) and is_216color(blue)
- ) or force_216color:
+ if (is_216color(red) and is_216color(green) and is_216color(blue)) or force_216color:
logger.debug("Using 216-color strategy")
return bg_216color(red, green, blue)
logger.debug("Using 24-bit color strategy")
@@ -1939,9 +1935,6 @@ if __name__ == '__main__':
_ = pick_contrasting_color(possibility)
xf = fg(None, _[0], _[1], _[2])
xb = bg(None, _[0], _[1], _[2])
- print(
- f'{f}{xb}{possibility}{reset()}\t\t\t'
- f'{b}{xf}{possibility}{reset()}'
- )
+ print(f'{f}{xb}{possibility}{reset()}\t\t\t' f'{b}{xf}{possibility}{reset()}')
main()