summaryrefslogtreecommitdiff
path: root/bjoern/videoanalyse
diff options
context:
space:
mode:
authorNiclas Dobbertin <niclas.dobbertin@stud.tu-darmstadt.de>2023-10-04 12:45:59 +0200
committerNiclas Dobbertin <niclas.dobbertin@stud.tu-darmstadt.de>2023-10-04 12:45:59 +0200
commit482e0742910da7089032f7b3cb85cf6752f4dfa9 (patch)
tree94dfedc353e267c422e861e65dfb3301b175a3ae /bjoern/videoanalyse
parentac9e9e76b1fb402d927a8509b0c714d84382bcaa (diff)
remove unnecessary codecs open
Diffstat (limited to 'bjoern/videoanalyse')
-rwxr-xr-xbjoern/videoanalyse/LogParser.py3
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