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

Commit db6e7dd

Browse files
committed
Add missing import
Cleanup
1 parent d7d0c35 commit db6e7dd

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

nordicsemi/lister/windows/structures.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def __str__(self):
5858
def __repr__(self):
5959
return "<GUID: {}>".format(str(self))
6060

61+
6162
assert ctypes.sizeof(_GUID) == 16
6263

6364

@@ -118,14 +119,15 @@ def __init__(self):
118119
super(ctypes.Structure, self).__init__()
119120
self.cbSize = ctypes.sizeof(self)
120121

122+
121123
class ctypesInternalGUID:
122124
def __init__(self, bytes):
123125
self._internal = bytes
124-
def __str__(self):
125-
return self._internal.raw
126+
126127
def __bytes__(self):
127128
return self._internal.raw
128129

130+
129131
DeviceInfoData.size = DeviceInfoData.cbSize
130132
DeviceInfoData.dev_inst = DeviceInfoData.DevInst
131133
DeviceInfoData.class_guid = DeviceInfoData.ClassGuid

tests/bdd/steps/dfu_steps.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
import logging
3939
import os
4040
import subprocess
41+
import time
4142

4243
from click.testing import CliRunner
4344
from behave import then, given

0 commit comments

Comments
 (0)