Skip to content

Commit 56ad81c

Browse files
author
Peter Kessen
committed
Format code with black
1 parent c469ce9 commit 56ad81c

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

can/interfaces/pcan/pcan.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def __init__(
106106
state=BusState.ACTIVE,
107107
bitrate=500000,
108108
*args,
109-
**kwargs
109+
**kwargs,
110110
):
111111
"""A PCAN USB interface to CAN.
112112
@@ -214,15 +214,13 @@ def __init__(
214214

215215
error, value = self.m_objPCANBasic.GetValue(PCAN_NONEBUS, PCAN_API_VERSION)
216216
if error != PCAN_ERROR_OK:
217-
raise CanInitializationError(
218-
F"Failed to read pcan basic api version"
219-
)
217+
raise CanInitializationError(f"Failed to read pcan basic api version")
220218

221-
apv = version.parse(value.decode('ascii'))
219+
apv = version.parse(value.decode("ascii"))
222220
if apv < MIN_PCAN_API_VERSION:
223221
raise CanInitializationError(
224-
F"Minimum version of pcan api is {MIN_PCAN_API_VERSION}."
225-
F" Installed version is {apv}. Consider upgrade of pcan basic package"
222+
f"Minimum version of pcan api is {MIN_PCAN_API_VERSION}."
223+
f" Installed version is {apv}. Consider upgrade of pcan basic package"
226224
)
227225

228226
if state is BusState.ACTIVE or state is BusState.PASSIVE:

0 commit comments

Comments
 (0)