Skip to content

Commit 06a13af

Browse files
authored
Update ANSI_color_terminal.py
1 parent aada1d7 commit 06a13af

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Fruit_Jam/CircuitPython_DVI_Video/ANSI_color_terminal.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#
99
import gc
1010
import supervisor
11-
import displayio
11+
import displayio
1212
from lvfontio import OnDiskFont
1313
from adafruit_fruitjam.peripherals import request_display_config
1414
from adafruit_color_terminal import ColorTerminal
@@ -50,13 +50,13 @@ def out_char(value, row, column, color):
5050

5151
def set_color(palette_index):
5252
"""Set FOREGROUND color only"""
53-
if not (0 <= palette_index <= 7):
53+
if not (0 <= palette_index <= 7): # pylint: disable=superfluous-parens
5454
raise ValueError("Palette index must be between 0 and 7")
5555
terminal.write(f"\033[3{palette_index}m")
5656

5757
def set_bgcolor(palette_index):
5858
"""Set BACKGROUND color only"""
59-
if not (0 <= palette_index <= 7):
59+
if not (0 <= palette_index <= 7): # pylint: disable=superfluous-parens
6060
raise ValueError("Palette index must be between 0 and 7")
6161
terminal.write(f"\033[4{palette_index}m")
6262

0 commit comments

Comments
 (0)