Skip to content

Commit f96d82b

Browse files
committed
Update formatting to make black happy
1 parent 3f6aab6 commit f96d82b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

adafruit_sharpmemorydisplay.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,11 @@ def image(self, img):
128128
width, height
129129
)
130130
)
131-
131+
132132
if numpy:
133-
self.buffer = bytearray(numpy.packbits(numpy.asarray(img), axis=1).flatten().tolist())
133+
self.buffer = bytearray(
134+
numpy.packbits(numpy.asarray(img), axis=1).flatten().tolist()
135+
)
134136
else:
135137
# Grab all the pixels from the image, faster than getpixel.
136138
pixels = img.load()
@@ -144,5 +146,3 @@ def image(self, img):
144146
self.pixel(x, y, pixels[(x, y)])
145147
elif pixels[(x, y)]:
146148
self.pixel(x, y, 1) # only write if pixel is true
147-
148-

0 commit comments

Comments
 (0)