add docstring

This commit is contained in:
Arturo Albacete 2024-01-20 22:04:53 +01:00
parent f190b85182
commit 4aa99f77ab
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ def plaintext_to_html(text, classname=None):
def update_logfile(logfile_path, fields):
"""Update a logfile from old format to new format to maintain CSV integrity."""
with open(logfile_path, "r", encoding="utf8", newline="") as file:
reader = csv.reader(file)
rows = list(reader)