From 4f8a3b17764679b2edbfc6c57099f1be3ccf7b56 Mon Sep 17 00:00:00 2001 From: Aaron Dershem Date: Mon, 14 May 2018 17:25:54 -0400 Subject: [PATCH] Fixes Flake 8 issue CircuitPython_Painter --- CircuitPython_Painter/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CircuitPython_Painter/main.py b/CircuitPython_Painter/main.py index c604803d..0d8e7a37 100644 --- a/CircuitPython_Painter/main.py +++ b/CircuitPython_Painter/main.py @@ -75,7 +75,7 @@ try: databuf = bytearray(bmpWidth * bmpHeight * 4) for row in range(bmpHeight): # For each scanline... - if (flip): # Bitmap is stored bottom-to-top order (normal BMP) + if flip: # Bitmap is stored bottom-to-top order (normal BMP) pos = bmpImageoffset + (bmpHeight - 1 - row) * rowSize else: # Bitmap is stored top-to-bottom pos = bmpImageoffset + row * rowSize