Skip to content

Commit 3df92e8

Browse files
authored
Still more pylint fixes
1 parent 9af32a9 commit 3df92e8

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

EInk_Autostereograms/code.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,7 @@ def display_bitmap(epd, filename):
7878
print("Width: %d\nHeight: %d" % (bmpWidth, bmpHeight))
7979
if read_le(f.read(2)) != 1:
8080
raise BMPError("Not singleplane")
81-
bmpDepth = read_le(f.read(2)) # bits per pixel
82-
print("Bit depth: %d" % (bmpDepth))
83-
if bmpDepth != 1:
81+
if read_le(f.read(2)) != 1: # bits per pixel
8482
raise BMPError("Not 1-bit")
8583
if read_le(f.read(4)) != 0:
8684
raise BMPError("Compressed file not supported")
@@ -285,7 +283,7 @@ def run_job(jobfile):
285283
if (
286284
(image[x - panelwidth // 2, y] != 0 and not inv
287285
) or (
288-
image[x - panelwidth // 2, y] == 0 and inv)
286+
image[x - panelwidth // 2, y] == 0 and inv)
289287
):
290288
# offset = 4
291289
if job["imagegrayscale"] == 0:

0 commit comments

Comments
 (0)