Commit b1695c1b authored by w-e-w's avatar w-e-w

fix #16169 Py 3.9 compatibility

Co-Authored-By: default avatarSLAPaper Pang <slapaper.pku@gmail.com>
parent bad47dcf
...@@ -118,7 +118,7 @@ def apply_size(p, x: str, xs) -> None: ...@@ -118,7 +118,7 @@ def apply_size(p, x: str, xs) -> None:
def find_vae(name: str): def find_vae(name: str):
if name := name.strip().lower() in ('auto', 'automatic'): if (name := name.strip().lower()) in ('auto', 'automatic'):
return 'Automatic' return 'Automatic'
elif name == 'none': elif name == 'none':
return 'None' return 'None'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment