From c91ed3f1484302da7a88dfed87726666eed38046 Mon Sep 17 00:00:00 2001 From: Jan Holthuis Date: Tue, 4 Aug 2020 17:21:51 +0200 Subject: tools/clang-format.py: Use plain "w" mode for writing files --- tools/clang_format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/clang_format.py b/tools/clang_format.py index 9c26c76a67..ba6fd803b2 100755 --- a/tools/clang_format.py +++ b/tools/clang_format.py @@ -71,7 +71,7 @@ def run_clang_format_on_lines(rootdir, file_to_format, stylepath=None): if proc.stderr: logger.error(proc.stderr) - with open(filename, mode="w+") as fp: + with open(filename, mode="w") as fp: fp.write(proc.stdout) -- cgit v1.2.3