mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-08 13:19:54 +00:00
add docstring
This commit is contained in:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user