diff options
author | Niclas Dobbertin <niclas.dobbertin@stud.tu-darmstadt.de> | 2023-10-04 12:45:59 +0200 |
---|---|---|
committer | Niclas Dobbertin <niclas.dobbertin@stud.tu-darmstadt.de> | 2023-10-04 12:45:59 +0200 |
commit | 482e0742910da7089032f7b3cb85cf6752f4dfa9 (patch) | |
tree | 94dfedc353e267c422e861e65dfb3301b175a3ae /bjoern | |
parent | ac9e9e76b1fb402d927a8509b0c714d84382bcaa (diff) |
remove unnecessary codecs open
Diffstat (limited to 'bjoern')
-rwxr-xr-x | bjoern/videoanalyse/LogParser.py | 3 |
1 files changed, 1 insertions, 2 deletions
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 |