Fix input encoding for python3

This commit is contained in:
Tim Rühsen 2017-09-14 20:25:59 +02:00
parent 964e90a43e
commit a12bd1d2a6
1 changed files with 1 additions and 1 deletions

View File

@ -685,7 +685,7 @@ def main():
psl_nexceptions = 0
psl_nwildcards = 0
with open(sys.argv[-2], 'r') as infile, open(sys.argv[-1], 'wb') as outfile:
with open(sys.argv[-2], 'r', **codecs) as infile, open(sys.argv[-1], 'wb') as outfile:
outfile.write(converter(parser(infile, utf_mode, codecs), utf_mode, codecs))
return 0