Skip to content

Commit

Permalink
pathlib
Browse files Browse the repository at this point in the history
  • Loading branch information
jhrystrom committed Aug 31, 2023
1 parent f2bb91c commit 635e98a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gpt2anki/fileio.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@

def read_txt(filepath: Path) -> str:
"""Read a text file."""
with open(filepath) as f:
with Path.open(filepath) as f:
return f.read()

0 comments on commit 635e98a

Please sign in to comment.