enforce utf-8 encoding for input files (#120)
This commit is contained in:
parent
a36259d8f1
commit
e26ba682a2
@ -283,7 +283,7 @@ def main():
|
|||||||
if args.inputfile == "-":
|
if args.inputfile == "-":
|
||||||
file = sys.stdin
|
file = sys.stdin
|
||||||
else:
|
else:
|
||||||
file = open(args.inputfile)
|
file = open(args.inputfile, encoding="utf-8")
|
||||||
urls += parse_inputfile(file)
|
urls += parse_inputfile(file)
|
||||||
file.close()
|
file.close()
|
||||||
except OSError as exc:
|
except OSError as exc:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user