Skip to content

Commit 1b6ebf7

Browse files
committed
move import for pre-commmit
1 parent 20d7a15 commit 1b6ebf7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

adafruit_imageload/png.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
except ImportError:
2626
pass
2727

28-
from sys import implementation
2928
import struct
3029
import zlib
30+
from sys import implementation
3131

3232
__version__ = "0.0.0-auto.0"
3333
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_ImageLoad.git"
@@ -113,13 +113,13 @@ def load( # noqa: PLR0912, PLR0915, Too many branches, Too many statements
113113
filladj = y * ((4 - (scanline % 4)) % 4)
114114
dst = y * scanline + filladj
115115
src = y * (scanline + 1) + 1
116-
# Work around the bug in displayio.Bitmap
117-
# remove once CircuitPython 9.1 is no longer supported
118-
# https://github.com/adafruit/circuitpython/issues/6675
119-
# https://github.com/adafruit/circuitpython/issues/9707
120116
if (
121117
(implementation[1][0] == 9 and implementation[1][1] < 2) or implementation[1][0] < 9
122118
) and (depth < 8 or width % 4 != 0):
119+
# Work around the bug in displayio.Bitmap
120+
# remove once CircuitPython 9.1 is no longer supported
121+
# https://github.com/adafruit/circuitpython/issues/6675
122+
# https://github.com/adafruit/circuitpython/issues/9707
123123
pixels_per_byte = 8 // depth
124124
for x in range(0, width, pixels_per_byte):
125125
byte = data_bytes[src]

0 commit comments

Comments
 (0)