Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Fix type incompatibility
Browse files Browse the repository at this point in the history
Use __bytes__ instead of __string__ to make GUID compatible with bytes()
  • Loading branch information
bihanssen committed Oct 24, 2019
1 parent 30873ef commit d7d0c35
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nordicsemi/lister/windows/structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d7d0c35

Please sign in to comment.