From 6f80f29e2e05e4406184f55f204a7e06b43e7f3c Mon Sep 17 00:00:00 2001 From: GI_Jack Date: Sat, 13 Mar 2021 19:08:53 -0500 Subject: [PATCH] added encoding="utf8" to open() to fix: https://github.com/GIJack/python-generate_mac/issues/1 --- generate_mac/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generate_mac/__init__.py b/generate_mac/__init__.py index 5b23d6e..3fe9e51 100644 --- a/generate_mac/__init__.py +++ b/generate_mac/__init__.py @@ -28,7 +28,7 @@ def _read_vid_file(vid_file): ''' Every line is [MAC,Vendor,Comment]''' out_lines = [] try: - in_file = open(vid_file,"r") + in_file = open(vid_file,"r",encoding="utf8") file_lines = in_file.readlines() in_file.close() except FileNotFoundError: