summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-08-04 17:21:51 +0200
committerJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-08-04 17:21:51 +0200
commitc91ed3f1484302da7a88dfed87726666eed38046 (patch)
treed8c2ccec5640ce34710f22162623fd00271b76a3 /tools
parent1e7698d781179b4c0a05ee40d8245e7fd4896bd6 (diff)
tools/clang-format.py: Use plain "w" mode for writing files
Diffstat (limited to 'tools')
-rwxr-xr-xtools/clang_format.py2
1 files changed, 1 insertions, 1 deletions
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)