Skip to content
This repository was archived by the owner on Apr 20, 2022. It is now read-only.

remove need for re module #6

Merged
merged 1 commit into from
Jan 21, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions adafruit_pypixelbuf.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@

* Author(s): Damien P. George & Limor Fried & Scott Shawcroft & Roy Hooper
"""
import re

DOTSTAR_LED_START_FULL_BRIGHT = 0xFF
DOTSTAR_LED_START = 0b11100000 # Three "1" bits, followed by 5 brightness bits
Expand Down Expand Up @@ -120,7 +119,7 @@ def parse_byteorder(byteorder):
dotstar_mode = False
has_white = False

if re.search(r'[^RGBWP]', byteorder):
if byteorder.strip("RGBWP") != "":
raise ValueError("Invalid Byteorder string")

try:
Expand Down