Skip to content

Commit 6684e37

Browse files
author
Prunier, Thierry
committed
Format code with Black for lint compliance
1 parent 2c95e9a commit 6684e37

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

can/interfaces/ixxat/canlib_vcinpl.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -523,9 +523,12 @@ def __init__(
523523
hwid = self._device_info.UniqueHardwareId.AsChar.decode("ascii")
524524
except:
525525
guid = self._device_info.UniqueHardwareId.AsGuid
526-
hwid = '{{{0:x}-{1:x}-{2:x}-{3}}}'.format(guid.Data1,guid.Data2,guid.Data3,guid.Data4.hex())
526+
hwid = '{{{0:x}-{1:x}-{2:x}-{3}}}'.format(
527+
guid.Data1,guid.Data2,guid.Data3,guid.Data4.hex()
528+
)
527529

528-
if (unique_hardware_id is None) or ( bytes(hwid, "ascii") == bytes(unique_hardware_id, "ascii")
530+
if (unique_hardware_id is None) or (
531+
bytes(hwid, "ascii") == bytes(unique_hardware_id, "ascii")
529532
):
530533
break
531534

@@ -977,7 +980,9 @@ def get_ixxat_hwids():
977980
hwids.append(device_info.UniqueHardwareId.AsChar.decode("ascii"))
978981
except:
979982
guid = device_info.UniqueHardwareId.AsGuid
980-
hwids.append('{{{0:x}-{1:x}-{2:x}-{3}}}'.format(guid.Data1,guid.Data2,guid.Data3,guid.Data4.hex()))
983+
hwids.append('{{{0:x}-{1:x}-{2:x}-{3}}}'.format(
984+
guid.Data1,guid.Data2,guid.Data3,guid.Data4.hex())
985+
)
981986
_canlib.vciEnumDeviceClose(device_handle)
982987

983988
return hwids
@@ -1006,7 +1011,9 @@ def _detect_available_configs() -> Sequence["AutoDetectedIxxatConfig"]:
10061011
hwid = device_info.UniqueHardwareId.AsChar.decode("ascii")
10071012
except:
10081013
guid = device_info.UniqueHardwareId.AsGuid
1009-
hwid = '{{{0:x}-{1:x}-{2:x}-{3}}}'.format(guid.Data1,guid.Data2,guid.Data3,guid.Data4.hex())
1014+
hwid = '{{{0:x}-{1:x}-{2:x}-{3}}}'.format(
1015+
guid.Data1,guid.Data2,guid.Data3,guid.Data4.hex()
1016+
)
10101017
_canlib.vciDeviceOpen(
10111018
ctypes.byref(device_info.VciObjectId),
10121019
ctypes.byref(device_handle2),

0 commit comments

Comments
 (0)