Skip to content

Commit

Permalink
opening priority files now uses 'r' mode instead of 'r+' (#285)
Browse files Browse the repository at this point in the history
Co-authored-by: mdraves91 <[email protected]>
  • Loading branch information
mortii and mdraves91 committed Aug 31, 2024
1 parent ccf68e7 commit 12ba23a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ankimorphs/ankimorphs_globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"""

# Semantic Versioning https://semver.org/
__version__ = "3.1.0"
__version__ = "3.1.1"

DEV_MODE: bool = False

Expand Down
2 changes: 1 addition & 1 deletion ankimorphs/morph_priority_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def _load_morph_priorities_from_file(
priority_file_name,
)
try:
with open(priority_file_path, mode="r+", encoding="utf-8") as csvfile:
with open(priority_file_path, encoding="utf-8") as csvfile:
morph_reader = csv.reader(csvfile, delimiter=",")
headers: list[str] | None = next(morph_reader, None)
priority_file: PriorityFile = _get_file_type_and_format(
Expand Down
2 changes: 1 addition & 1 deletion docs/src/contributors.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ know, and I'll add you ;)

### Code contribution

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

### Docs contribution

Expand Down

0 comments on commit 12ba23a

Please sign in to comment.