Skip to content

Commit

Permalink
Add encoding to FileType
Browse files Browse the repository at this point in the history
  • Loading branch information
jspricke committed Jul 6, 2022
1 parent 58b9d9e commit 97c7447
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions remind.py
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ def rem2ics() -> None:
parser.add_argument(
"outfile",
nargs="?",
type=FileType("w"),
type=FileType("w", encoding="utf-8"),
default=stdout,
help="Output iCalendar file (default: stdout)",
)
Expand Down Expand Up @@ -778,14 +778,14 @@ def ics2rem() -> None:
parser.add_argument(
"infile",
nargs="?",
type=FileType("r"),
type=FileType("r", encoding="utf-8"),
default=stdin,
help="Input iCalendar file (default: stdin)",
)
parser.add_argument(
"outfile",
nargs="?",
type=FileType("w"),
type=FileType("w", encoding="utf-8"),
default=stdout,
help="Output Remind file (default: stdout)",
)
Expand Down

0 comments on commit 97c7447

Please sign in to comment.