Skip to content

Commit 9ffb066

Browse files
committed
code format
1 parent 609f606 commit 9ffb066

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

adafruit_portalbase/graphics.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,11 @@ def set_background(self, file_or_color, position=None):
8282
if file_lower.endswith(".bmp"):
8383
background = displayio.OnDiskBitmap(file_or_color)
8484
palette = background.pixel_shader
85-
elif file_lower.endswith(".jpg") or file_lower.endswith(".jpeg") or file_lower.endswith(".png"):
85+
elif (
86+
file_lower.endswith(".jpg")
87+
or file_lower.endswith(".jpeg")
88+
or file_lower.endswith(".png")
89+
):
8690
background, palette = adafruit_imageload.load(file_or_color)
8791
else:
8892
raise ValueError(f"Image File type {file_or_color} not supported")

0 commit comments

Comments
 (0)