mirror of https://github.com/wanadev/yoga.git
CLI: Open files in binary mode
This commit is contained in:
parent
9010668dc4
commit
b9a0fcd501
|
@ -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")
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue