Skip to content

Commit

Permalink
Remove unecesarry list comprehension
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycrosley committed Jul 1, 2020
1 parent 2171853 commit f86c9f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build_config_option_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def human(name: str) -> str:
if name in HUMAN_NAME:
return HUMAN_NAME[name]

return " ".join([part.capitalize() for part in name.replace("-", "_").split("_")])
return " ".join(part.capitalize() for part in name.replace("-", "_").split("_"))


def config_options() -> Generator[ConfigOption, None, None]:
Expand Down

0 comments on commit f86c9f9

Please sign in to comment.