Skip to content

Commit 2d91cc0

Browse files
authored
Unify usage of utf-8 (#210)
1 parent f4d093c commit 2d91cc0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pytr/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,12 @@ def formatter(prog):
243243
parser_export_transactions.add_argument(
244244
"input",
245245
help="Input path to JSON (use all_events.json from dl_docs)",
246-
type=argparse.FileType("r", encoding="utf8"),
246+
type=argparse.FileType("r", encoding="utf-8"),
247247
)
248248
parser_export_transactions.add_argument(
249249
"output",
250250
help="Output file path",
251-
type=argparse.FileType("w", encoding="utf8"),
251+
type=argparse.FileType("w", encoding="utf-8"),
252252
default="-",
253253
nargs="?",
254254
)

pytr/timeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def finish_timeline_details(self, dl):
229229
indent=2,
230230
)
231231

232-
with (dl.output_path / "account_transactions.csv").open("w", encoding="utf8") as f:
232+
with (dl.output_path / "account_transactions.csv").open("w", encoding="utf-8") as f:
233233
TransactionExporter(
234234
lang=dl.lang,
235235
date_with_time=dl.date_with_time,

0 commit comments

Comments
 (0)