Skip to content

Commit 48a420b

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

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

can/interfaces/ixxat/canlib_vcinpl.py

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -523,12 +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(
527-
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()
528528
)
529-
530-
if (unique_hardware_id is None) or (
531-
bytes(hwid, "ascii") == bytes(unique_hardware_id, "ascii")
529+
530+
if (unique_hardware_id is None) or (
531+
bytes(hwid, "ascii") == bytes(unique_hardware_id, "ascii")
532532
):
533533
break
534534

@@ -980,8 +980,10 @@ def get_ixxat_hwids():
980980
hwids.append(device_info.UniqueHardwareId.AsChar.decode("ascii"))
981981
except:
982982
guid = device_info.UniqueHardwareId.AsGuid
983-
hwids.append('{{{0:x}-{1:x}-{2:x}-{3}}}'.format(
984-
guid.Data1,guid.Data2,guid.Data3,guid.Data4.hex())
983+
hwids.append(
984+
"{{{0:x}-{1:x}-{2:x}-{3}}}".format(
985+
guid.Data1, guid.Data2, guid.Data3, guid.Data4.hex()
986+
)
985987
)
986988
_canlib.vciEnumDeviceClose(device_handle)
987989

@@ -1011,8 +1013,8 @@ def _detect_available_configs() -> Sequence["AutoDetectedIxxatConfig"]:
10111013
hwid = device_info.UniqueHardwareId.AsChar.decode("ascii")
10121014
except:
10131015
guid = device_info.UniqueHardwareId.AsGuid
1014-
hwid = '{{{0:x}-{1:x}-{2:x}-{3}}}'.format(
1015-
guid.Data1,guid.Data2,guid.Data3,guid.Data4.hex()
1016+
hwid = "{{{0:x}-{1:x}-{2:x}-{3}}}".format(
1017+
guid.Data1, guid.Data2, guid.Data3, guid.Data4.hex()
10161018
)
10171019
_canlib.vciDeviceOpen(
10181020
ctypes.byref(device_info.VciObjectId),

0 commit comments

Comments
 (0)