Skip to content

Commit 99679af

Browse files
committed
Fixing lint warnings
1 parent 9481049 commit 99679af

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

adafruit_imageload/bmp/indexed.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ def load(file, width, height, data_start, colors, color_depth, *, bitmap=None, p
4949
for value in range(colors):
5050
c_bytes = file.read(4)
5151
# Need to swap red & blue bytes (bytes 0 and 2)
52-
palette[value] = bytes(b''.join([c_bytes[2:3], c_bytes[1:2], c_bytes[0:1], c_bytes[3:1]]))
52+
palette[value] = bytes(b''.join([c_bytes[2:3],
53+
c_bytes[1:2], c_bytes[0:1], c_bytes[3:1]]))
5354

5455
if bitmap:
5556
minimum_color_depth = 1

examples/imageload_colorwheel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
display = board.DISPLAY
66

77
bitmap, palette = adafruit_imageload.load("images/color_wheel.bmp",
8-
bitmap=displayio.Bitmap, palette=displayio.Palette)
8+
bitmap=displayio.Bitmap, palette=displayio.Palette)
99

1010
tile_grid = displayio.TileGrid(bitmap, pixel_shader=palette)
1111

1212
group = displayio.Group()
1313
group.append(tile_grid)
1414
display.show(group)
1515
while True:
16-
pass
16+
pass

0 commit comments

Comments
 (0)