mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-04-13 00:09:02 +08:00
add docstring
This commit is contained in:
parent
f190b85182
commit
4aa99f77ab
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user