Skip to content

Commit f96e405

Browse files
authored
Merge pull request #40 from adafruit/dhalbert-patch-1
Remove obsolete reference to ustruct; fix conditional typing import
2 parents af5fc32 + 789c2bd commit f96e405

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

adafruit_fingerprint.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@
2424
* Adafruit CircuitPython firmware (2.2.0+) for the ESP8622 and M0-based boards:
2525
https://github.com/adafruit/circuitpython/releases
2626
"""
27-
28-
from micropython import const
29-
3027
try:
3128
from typing import Tuple, List, Union
32-
from busio import UART
33-
import struct
3429
except ImportError:
35-
import ustruct as struct
30+
pass
31+
32+
import struct
33+
34+
from micropython import const
35+
from busio import UART
3636

3737
__version__ = "0.0.0-auto.0"
3838
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_Fingerprint.git"

0 commit comments

Comments
 (0)