We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25aad69 commit 1a5e5e5Copy full SHA for 1a5e5e5
scripts/tools/zap/generate.py
@@ -30,9 +30,11 @@
30
31
from zap_execution import ZapTool
32
33
+
34
def isWindows():
35
return platform.system() == "Windows"
36
37
38
# fcntl is not supported on widows platform due to lack of necessity of I/O control on file descriptor
39
if not isWindows():
40
import fcntl
@@ -343,7 +345,6 @@ def __enter__(self):
343
345
self.lock_file = open(self.lock_file_path, 'wb')
344
346
fcntl.lockf(self.lock_file, fcntl.LOCK_EX)
347
-
348
def __exit__(self, *args):
349
350
if not self.lock_file or isWindows():
0 commit comments