From 482e0742910da7089032f7b3cb85cf6752f4dfa9 Mon Sep 17 00:00:00 2001 From: Niclas Dobbertin Date: Wed, 4 Oct 2023 12:45:59 +0200 Subject: remove unnecessary codecs open --- bjoern/videoanalyse/LogParser.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bjoern') diff --git a/bjoern/videoanalyse/LogParser.py b/bjoern/videoanalyse/LogParser.py index d31575e..0633fd8 100755 --- a/bjoern/videoanalyse/LogParser.py +++ b/bjoern/videoanalyse/LogParser.py @@ -8,7 +8,6 @@ import os import re from datetime import datetime import csv -import codecs from read_sqlite import get_url_from_sqlite from pathlib import Path @@ -65,7 +64,7 @@ def get_log_data(data_path): if s.endswith(".log"): log_files.append(os.path.join(data_path, s)) for l in log_files: - with codecs.open(l, "r", "utf-8") as reader: + with open(l, "r") as reader: log_data.append(reader.read()) return log_data -- cgit v1.2.3