From ae94b2a87217d135e82e5bfb5afc3b4af3060aaf Mon Sep 17 00:00:00 2001 From: Alec Delaney Date: Tue, 29 Mar 2022 18:15:15 -0400 Subject: [PATCH] "Reformatted per new black version" --- adafruit_imageload/bmp/__init__.py | 2 +- adafruit_imageload/bmp/indexed.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/adafruit_imageload/bmp/__init__.py b/adafruit_imageload/bmp/__init__.py index bab3c54..a8cd86d 100644 --- a/adafruit_imageload/bmp/__init__.py +++ b/adafruit_imageload/bmp/__init__.py @@ -53,7 +53,7 @@ def load(file, *, bitmap=None, palette=None): raise NotImplementedError("bitmask compression unsupported") if colors == 0: - colors = 2 ** color_depth + colors = 2**color_depth from . import indexed return indexed.load( diff --git a/adafruit_imageload/bmp/indexed.py b/adafruit_imageload/bmp/indexed.py index 1fed132..ba39060 100755 --- a/adafruit_imageload/bmp/indexed.py +++ b/adafruit_imageload/bmp/indexed.py @@ -58,7 +58,7 @@ def load( if bitmap: minimum_color_depth = 1 - while colors > 2 ** minimum_color_depth: + while colors > 2**minimum_color_depth: minimum_color_depth *= 2 if sys.maxsize > 1073741823: