Skip to content

Commit bd7ddc6

Browse files
authored
Merge pull request #51 from adafruit/tannewt-patch-2
Remove backwards compatibile imports
2 parents f5892e2 + 9a47941 commit bd7ddc6

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

adafruit_lis3dh.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,9 @@
3232

3333
import time
3434
import math
35+
from collections import namedtuple
36+
import struct
3537
import digitalio
36-
try:
37-
from collections import namedtuple
38-
except ImportError:
39-
from ucollections import namedtuple
40-
try:
41-
import struct
42-
except ImportError:
43-
import ustruct as struct
4438

4539
from micropython import const
4640

0 commit comments

Comments
 (0)