diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-05-09 19:40:51 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-09 19:40:51 +0000 |
commit | d6a9b22c195a0b4b9c6b04ccdfc59c18d099da7a (patch) | |
tree | 894f00b92caa229dbfaa2d07c16c25e0167412db /scripts/custom_code.py | |
parent | ccbb361845bfabfa3fc2c77bb234ea4be0781dd9 (diff) | |
parent | 3ba6c3c83c0983a025c7bddc08bb7f49481b3cbb (diff) | |
download | stable-diffusion-webui-gfx803-d6a9b22c195a0b4b9c6b04ccdfc59c18d099da7a.tar.gz stable-diffusion-webui-gfx803-d6a9b22c195a0b4b9c6b04ccdfc59c18d099da7a.tar.bz2 stable-diffusion-webui-gfx803-d6a9b22c195a0b4b9c6b04ccdfc59c18d099da7a.zip |
Merge pull request #10232 from akx/eff
Fix up string formatting/concatenation to f-strings where feasible
Diffstat (limited to 'scripts/custom_code.py')
-rw-r--r-- | scripts/custom_code.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/custom_code.py b/scripts/custom_code.py index 4071d86d..f36a3675 100644 --- a/scripts/custom_code.py +++ b/scripts/custom_code.py @@ -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__()"""
|