From b7046e26a09fc715dbbdccde0666b45d113a22f7 Mon Sep 17 00:00:00 2001 From: Matt Land Date: Tue, 3 May 2022 14:03:53 -0600 Subject: [PATCH 1/2] fix for #21, always create reference --- adafruit_bitmapsaver.py | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/adafruit_bitmapsaver.py b/adafruit_bitmapsaver.py index f0231e8..71b9f6b 100644 --- a/adafruit_bitmapsaver.py +++ b/adafruit_bitmapsaver.py @@ -1,4 +1,5 @@ # SPDX-FileCopyrightText: 2019 Dave Astels for Adafruit Industries +# SPDX-FileCopyrightText: 2022 Matt Land # # SPDX-License-Identifier: MIT @@ -10,7 +11,7 @@ Make a screenshot (the contents of a displayio.Display) and save in a BMP file. -* Author(s): Dave Astels +* Author(s): Dave Astels, Matt Land Implementation Notes -------------------- @@ -38,18 +39,18 @@ def _write_bmp_header(output_file, filesize): output_file.write(bytes("BM", "ascii")) - output_file.write(struct.pack(" Date: Tue, 3 May 2022 14:49:50 -0600 Subject: [PATCH 2/2] remove the pylint comments #21 --- adafruit_bitmapsaver.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/adafruit_bitmapsaver.py b/adafruit_bitmapsaver.py index 71b9f6b..987cac8 100644 --- a/adafruit_bitmapsaver.py +++ b/adafruit_bitmapsaver.py @@ -39,18 +39,18 @@ def _write_bmp_header(output_file, filesize): output_file.write(bytes("BM", "ascii")) - output_file.write(struct.pack("