Commit 4aa99f77 authored by Arturo Albacete's avatar Arturo Albacete

add docstring

parent f190b851
...@@ -38,6 +38,7 @@ def plaintext_to_html(text, classname=None): ...@@ -38,6 +38,7 @@ def plaintext_to_html(text, classname=None):
def update_logfile(logfile_path, fields): 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: with open(logfile_path, "r", encoding="utf8", newline="") as file:
reader = csv.reader(file) reader = csv.reader(file)
rows = list(reader) rows = list(reader)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment