We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09f27e7 commit 7c24b83Copy full SHA for 7c24b83
tools/report-converter/codechecker_report_converter/report/parser/plist.py
@@ -13,6 +13,7 @@
13
import logging
14
import os
15
import plistlib
16
+import portalocker
17
import traceback
18
import sys
19
@@ -530,7 +531,7 @@ def convert(
530
531
def write(self, data: Any, output_file_path: str):
532
""" Creates an analyzer output file from the given data. """
533
try:
- with open(output_file_path, 'wb') as f:
534
+ with portalocker.Lock(output_file_path, 'wb') as f:
535
plistlib.dump(data, f)
536
except TypeError as err:
537
LOG.error('Failed to write plist file: %s', output_file_path)
0 commit comments