Skip to content

Commit a688695

Browse files
committed
remove special case for socketcan_{native,ctypes}
1 parent 8ad901e commit a688695

2 files changed

Lines changed: 1 addition & 10 deletions

File tree

‎can/interfaces/socketcan/socketcan.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# coding: utf-8
2-
import logging
32

3+
import logging
44
import ctypes
55
import ctypes.util
66
import os
@@ -14,8 +14,6 @@
1414
log_tx = log.getChild("tx")
1515
log_rx = log.getChild("rx")
1616

17-
log.debug("Loading socketcan native backend")
18-
1917
try:
2018
import fcntl
2119
except ImportError:

‎can/util.py‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -186,13 +186,6 @@ def load_config(path=None, config=None, context=None):
186186
if key not in config:
187187
config[key] = None
188188

189-
# Handle deprecated socketcan types
190-
if config['interface'] in ('socketcan_native', 'socketcan_ctypes'):
191-
# DeprecationWarning in 3.x releases
192-
# TODO: Remove completely in 4.0
193-
warnings.warn('{} is deprecated, use socketcan instead'.format(config['interface']), DeprecationWarning)
194-
config['interface'] = 'socketcan'
195-
196189
if config['interface'] not in VALID_INTERFACES:
197190
raise NotImplementedError('Invalid CAN Bus Type - {}'.format(config['interface']))
198191

0 commit comments

Comments
 (0)