Fix input encoding for python3

This commit is contained in:
Tim Rühsen 2017-09-14 20:25:59 +02:00 committed by Dagobert Michelsen
parent 4d5982ed98
commit 4bcbb57936
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