mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-03 19:02:27 +00:00
Fix up string formatting/concatenation to f-strings where feasible
This commit is contained in:
@@ -77,7 +77,7 @@ return process_images(p)
|
||||
module.display = display
|
||||
|
||||
indent = " " * indent_level
|
||||
indented = code.replace('\n', '\n' + indent)
|
||||
indented = code.replace('\n', f"\n{indent}")
|
||||
body = f"""def __webuitemp__():
|
||||
{indent}{indented}
|
||||
__webuitemp__()"""
|
||||
|
Reference in New Issue
Block a user