fix: use if instead of elif

pull/28/head
mingrammer 6 years ago
parent d0ea82ef1e
commit 2366fe7f11

@ -19,7 +19,7 @@ def load_tmpl(tmpl: str) -> Template:
def up_or_title(pvd: str, s: str) -> str: def up_or_title(pvd: str, s: str) -> str:
if s in cfg.UPPER_WORDS.get(pvd, ()): if s in cfg.UPPER_WORDS.get(pvd, ()):
return s.upper() 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 cfg.TITLE_WORDS[pvd][s]
return s.title() return s.title()

Loading…
Cancel
Save