Skip to content

Commit 12ba23a

Browse files
mortiimdraves91
andcommitted
opening priority files now uses 'r' mode instead of 'r+' (#285)
Co-authored-by: mdraves91 <[email protected]>
1 parent ccf68e7 commit 12ba23a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ankimorphs/ankimorphs_globals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"""
66

77
# Semantic Versioning https://semver.org/
8-
__version__ = "3.1.0"
8+
__version__ = "3.1.1"
99

1010
DEV_MODE: bool = False
1111

ankimorphs/morph_priority_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def _load_morph_priorities_from_file(
7777
priority_file_name,
7878
)
7979
try:
80-
with open(priority_file_path, mode="r+", encoding="utf-8") as csvfile:
80+
with open(priority_file_path, encoding="utf-8") as csvfile:
8181
morph_reader = csv.reader(csvfile, delimiter=",")
8282
headers: list[str] | None = next(morph_reader, None)
8383
priority_file: PriorityFile = _get_file_type_and_format(

docs/src/contributors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ know, and I'll add you ;)
66

77
### Code contribution
88

9-
mortii, Vilhelm-Ian, xofm31, Jcuhfehl, schiozzone, Tartee, wolearyc.
9+
mortii, Vilhelm-Ian, xofm31, Jcuhfehl, schiozzone, Tartee, wolearyc, mdraves91.
1010

1111
### Docs contribution
1212

0 commit comments

Comments
 (0)