From 1a5e5e5da4b5fcc01f40d163929c8add096d112a Mon Sep 17 00:00:00 2001 From: Kamil Kasperczyk Date: Wed, 8 Nov 2023 14:45:06 +0100 Subject: [PATCH] [nrf noup] Fixed minor style issues returned by code lint Signed-off-by: Kamil Kasperczyk --- scripts/tools/zap/generate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/tools/zap/generate.py b/scripts/tools/zap/generate.py index 516921fc05..758b1eb66e 100755 --- a/scripts/tools/zap/generate.py +++ b/scripts/tools/zap/generate.py @@ -30,9 +30,11 @@ from zap_execution import ZapTool + def isWindows(): return platform.system() == "Windows" + # fcntl is not supported on widows platform due to lack of necessity of I/O control on file descriptor if not isWindows(): import fcntl @@ -343,7 +345,6 @@ def __enter__(self): self.lock_file = open(self.lock_file_path, 'wb') fcntl.lockf(self.lock_file, fcntl.LOCK_EX) - def __exit__(self, *args): # fcntl is not supported on widows platform due to lack of necessity of I/O control on file descriptor if not self.lock_file or isWindows():