Skip to content

Commit df7a258

Browse files
committed
Removing unnecessary import block.
1 parent b25dfeb commit df7a258

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

adafruit_dotstar.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,17 @@
99
`adafruit_dotstar` - DotStar strip driver (for CircuitPython 5.0+ with _pixelbuf)
1010
=================================================================================
1111
12-
* Author(s): Damien P. George, Limor Fried, Scott Shawcroft & Roy Hooper
12+
* Author(s): Damien P. George, Limor Fried, Scott Shawcroft & Rose Hooper
1313
"""
1414

1515
# pylint: disable=ungrouped-imports
16-
import sys
1716
import busio
1817
import digitalio
1918

20-
if sys.implementation.version[0] < 5:
19+
try:
20+
import _pixelbuf
21+
except ImportError:
2122
import adafruit_pypixelbuf as _pixelbuf
22-
else:
23-
try:
24-
import _pixelbuf
25-
except ImportError:
26-
import adafruit_pypixelbuf as _pixelbuf
2723

2824
__version__ = "0.0.0-auto.0"
2925
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_DotStar.git"

0 commit comments

Comments
 (0)