CLI: Open files in binary mode

This commit is contained in:
Fabien LOISON 2017-12-14 11:45:09 +01:00
parent 9010668dc4
commit b9a0fcd501
No known key found for this signature in database
GPG Key ID: FF90CA148348048E
1 changed files with 2 additions and 2 deletions

View File

@ -7,12 +7,12 @@ def add_main_cli_arguments(parser):
parser.add_argument(
"input",
help="Input file path",
type=argparse.FileType("r")
type=argparse.FileType("rb")
)
parser.add_argument(
"output",
help="Output file path",
type=argparse.FileType("w")
type=argparse.FileType("wb")
)