Skip to content

Commit 3959f9b

Browse files
author
Jonathan Dahan
committed
pylint
1 parent d84d550 commit 3959f9b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

adafruit_framebuf.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def get_pixel(framebuf, x, y):
6868
def fill(framebuf, color):
6969
"""completely fill/clear the buffer with a color"""
7070
if color:
71-
bits = (color & 0b11)
71+
bits = color & 0b11
7272
fill = (bits << 6) | (bits << 4) | (bits << 2) | (bits << 0)
7373
else:
7474
fill = 0x00
@@ -537,9 +537,7 @@ def image(self, img):
537537
imwidth, imheight = img.size
538538
if imwidth != width or imheight != height:
539539
raise ValueError(
540-
"Image must be same dimensions as display ({0}x{1}).".format(
541-
width, height
542-
)
540+
f"Image must be same dimensions as display ({width}x{height})."
543541
)
544542
# Grab all the pixels from the image, faster than getpixel.
545543
pixels = img.load()

0 commit comments

Comments
 (0)