From d7d0c35b7254c586218ca481fcb112d796276f8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Inge=20Hanssen?= Date: Thu, 24 Oct 2019 11:22:15 +0200 Subject: [PATCH] Fix type incompatibility Use __bytes__ instead of __string__ to make GUID compatible with bytes() --- nordicsemi/lister/windows/structures.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nordicsemi/lister/windows/structures.py b/nordicsemi/lister/windows/structures.py index bcb183d..b8acd0a 100644 --- a/nordicsemi/lister/windows/structures.py +++ b/nordicsemi/lister/windows/structures.py @@ -123,6 +123,8 @@ def __init__(self, bytes): self._internal = bytes def __str__(self): return self._internal.raw + def __bytes__(self): + return self._internal.raw DeviceInfoData.size = DeviceInfoData.cbSize DeviceInfoData.dev_inst = DeviceInfoData.DevInst