Skip to content

Commit 74d29c6

Browse files
committed
[clang-format] Open plurals.txt in read-only mode in dump_format_style.py
1 parent b54ba53 commit 74d29c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/docs/tools/dump_format_style.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
PLURALS_FILE = os.path.join(os.path.dirname(__file__), "plurals.txt")
2121

2222
plurals: Set[str] = set()
23-
with open(PLURALS_FILE, "a+") as f:
23+
with open(PLURALS_FILE) as f:
2424
f.seek(0)
2525
plurals = set(f.read().splitlines())
2626

0 commit comments

Comments
 (0)