From 2366fe7f1181e9c1951108aea7164fa74a6dce47 Mon Sep 17 00:00:00 2001 From: mingrammer Date: Tue, 18 Feb 2020 21:41:33 +0900 Subject: [PATCH] fix: use if instead of elif --- scripts/generate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generate.py b/scripts/generate.py index a593aa9..26fa051 100644 --- a/scripts/generate.py +++ b/scripts/generate.py @@ -19,7 +19,7 @@ def load_tmpl(tmpl: str) -> Template: def up_or_title(pvd: str, s: str) -> str: if s in cfg.UPPER_WORDS.get(pvd, ()): return s.upper() - elif s in cfg.TITLE_WORDS.get(pvd, {}): + if s in cfg.TITLE_WORDS.get(pvd, {}): return cfg.TITLE_WORDS[pvd][s] return s.title()