Skip to content

Commit 72e7ae2

Browse files
committed
Corrected Actions Errors
Disabled the too-many-branches pylint check in __init__.py The new 'if' statement goes over the limit of 12 branches. Shortened comment in jpg.py
1 parent 41a28c1 commit 72e7ae2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

adafruit_imageload/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ def load(
4747
palette is the desired palette type. The constructor should take the number of colors and
4848
support assignment to indices via [].
4949
"""
50+
# pylint: disable=too-many-branches
5051
if not bitmap or not palette:
5152
try:
5253
# use displayio if available

adafruit_imageload/jpg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1313
"""
1414

15-
#A separate try for jpegio. While it has wide support it is not universal, and this import may fail.
15+
#A separate try for jpegio. Not every board supports it and this import may fail.
1616
#If that happens an ImportError with a proper message needs to be raised
1717
try:
1818
from jpegio import JpegDecoder

0 commit comments

Comments
 (0)