From 310a9f7ffe448e37e7dbdf78ab979abac8407a13 Mon Sep 17 00:00:00 2001 From: Alex Kelly Date: Fri, 1 Oct 2021 10:22:05 -0400 Subject: [PATCH] chore: correct lint error on file encoding --- checkcert/checkcert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checkcert/checkcert.py b/checkcert/checkcert.py index 012db22..9653be6 100644 --- a/checkcert/checkcert.py +++ b/checkcert/checkcert.py @@ -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)