chore: correct lint error on file encoding

This commit is contained in:
Alex Kelly 2021-10-01 10:22:05 -04:00
parent cee20e2c7c
commit 310a9f7ffe

View file

@ -101,7 +101,7 @@ def main(san, dump, color, filename, hosts):
# handle a domain given with a : in it to specify the port
if filename:
hosts = []
with open(filename, "r") as infile:
with open(filename, "r", encoding="utf-8") as infile:
for line in infile:
line = line.strip()
hosts.append(line)