@@ -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