Skip to content

Commit e4ad0dd

Browse files
authored
Remove backwards compatibile imports
This saves 80 or so bytes when frozen into the CPX build
1 parent f5892e2 commit e4ad0dd

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
@@ -33,14 +33,8 @@
3333
import time
3434
import math
3535
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
36+
from collections import namedtuple
37+
import struct
4438

4539
from micropython import const
4640

0 commit comments

Comments
 (0)