Skip to content

Commit bdef506

Browse files
authored
Merge pull request #109 from kattni/import-fix
Removing unnecessary import block.
2 parents a9ec639 + 6bc830f commit bdef506

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

neopixel.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,17 @@
99
`neopixel` - NeoPixel strip driver
1010
====================================================
1111
12-
* Author(s): Damien P. George, Scott Shawcroft, Carter Nelson, Roy Hooper
12+
* Author(s): Damien P. George, Scott Shawcroft, Carter Nelson, Rose Hooper
1313
"""
1414

1515
# pylint: disable=ungrouped-imports
16-
import sys
1716
import digitalio
1817
from neopixel_write import neopixel_write
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

2925
__version__ = "0.0.0-auto.0"

0 commit comments

Comments
 (0)