Skip to content

Commit 1a5e5e5

Browse files
[nrf noup] Fixed minor style issues returned by code lint
Signed-off-by: Kamil Kasperczyk <kamil.kasperczyk@nordicsemi.no>
1 parent 25aad69 commit 1a5e5e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/tools/zap/generate.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@
3030

3131
from zap_execution import ZapTool
3232

33+
3334
def isWindows():
3435
return platform.system() == "Windows"
3536

37+
3638
# fcntl is not supported on widows platform due to lack of necessity of I/O control on file descriptor
3739
if not isWindows():
3840
import fcntl
@@ -343,7 +345,6 @@ def __enter__(self):
343345
self.lock_file = open(self.lock_file_path, 'wb')
344346
fcntl.lockf(self.lock_file, fcntl.LOCK_EX)
345347

346-
347348
def __exit__(self, *args):
348349
# fcntl is not supported on widows platform due to lack of necessity of I/O control on file descriptor
349350
if not self.lock_file or isWindows():

0 commit comments

Comments
 (0)