Skip to content

Commit

Permalink
fix: use if instead of elif
Browse files Browse the repository at this point in the history
  • Loading branch information
mingrammer committed Feb 18, 2020
1 parent d0ea82e commit 2366fe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 2366fe7

Please sign in to comment.