From 9aece7c586b5c021241e843b98c00fcd8fd0fdca Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Wed, 22 Dec 2021 09:41:32 -0500 Subject: [PATCH 1/2] Remove obsolete reference to ustruct --- adafruit_seesaw/neopixel.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/adafruit_seesaw/neopixel.py b/adafruit_seesaw/neopixel.py index 68189c8..f55c1ea 100644 --- a/adafruit_seesaw/neopixel.py +++ b/adafruit_seesaw/neopixel.py @@ -8,11 +8,8 @@ `adafruit_seesaw.neopixel` ==================================================== """ +import struct -try: - import struct -except ImportError: - import ustruct as struct try: from micropython import const except ImportError: From 61302b7fe348459712dfc921e9ba3e0e6fd362c1 Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Wed, 22 Dec 2021 09:42:16 -0500 Subject: [PATCH 2/2] Remove obsolete reference to ustruct --- adafruit_seesaw/seesaw.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/adafruit_seesaw/seesaw.py b/adafruit_seesaw/seesaw.py index 20eb0d3..60fbd72 100644 --- a/adafruit_seesaw/seesaw.py +++ b/adafruit_seesaw/seesaw.py @@ -29,12 +29,9 @@ # compatible classes so we won't bother with some lints until then. # pylint: disable=missing-docstring,invalid-name,too-many-public-methods,no-name-in-module +import struct import time -try: - import struct -except ImportError: - import ustruct as struct try: from micropython import const except ImportError: