Skip to content
Merged
Changes from 1 commit
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
Next Next commit
Only expose SocketCAN classes directly on Linux
  • Loading branch information
christiansandberg committed Jul 11, 2018
commit ab30b36bc215ded4cc8dbdcc51ed9c8e0ea49a65
5 changes: 4 additions & 1 deletion can/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
from .util import load_config
from .interfaces import BACKENDS

from can.interfaces.socketcan.socketcan import CyclicSendTask, MultiRateCyclicSendTask
if 'linux' in sys.platform:
# Deprecated and undocumented access to SocketCAN cyclic tasks
# Will be removed in version 3.0
from can.interfaces.socketcan import CyclicSendTask, MultiRateCyclicSendTask

# Required by "detect_available_configs" for argument interpretation
if sys.version_info.major > 2:
Expand Down