summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>2019-09-10 15:19:19 +0200
committerIOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>2019-09-10 15:19:19 +0200
commitdfc7f249b3b73d86220cdf12576427c4f87b3324 (patch)
treed573b41f5d3648f0bcb4dec165de2e312a227cae
parente3f14435e28106276be1d4e20573d5c457fd414c (diff)
Use 'enum' library rather than 'aenum'
Last-Update: 2019-09-10 On Debian we only ship python3-can with python>3.7... Last-Update: 2019-09-10 Gbp-Pq: Name 0003-aenum-enum.patch
-rw-r--r--can/bus.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/can/bus.py b/can/bus.py
index e22bf61..f62a9da 100644
--- a/can/bus.py
+++ b/can/bus.py
@@ -13,7 +13,10 @@ import can
import logging
import threading
from time import time
-from aenum import Enum, auto
+try:
+ from aenum import Enum, auto
+except ImportError:
+ from enum import Enum, auto
from can.broadcastmanager import ThreadBasedCyclicSendTask
from can.message import Message