mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-11-27 06:40:10 +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):
|
||||
"""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)
|
||||
|
Loading…
Reference in New Issue
Block a user