Skip to content

Commit

Permalink
[nrf noup] Fixed minor style issues returned by code lint
Browse files Browse the repository at this point in the history
Signed-off-by: Kamil Kasperczyk <kamil.kasperczyk@nordicsemi.no>
  • Loading branch information
kkasperczyk-no committed Nov 9, 2023
1 parent 25aad69 commit 1a5e5e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/tools/zap/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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():
Expand Down

0 comments on commit 1a5e5e5

Please sign in to comment.