diff options
| author | Timothy Crosley <timothy.crosley@gmail.com> | 2020-06-30 22:54:55 -0700 |
|---|---|---|
| committer | Timothy Crosley <timothy.crosley@gmail.com> | 2020-06-30 22:54:55 -0700 |
| commit | f86c9f9a1538be47aaf44c74b5bff836c3c2fc6d (patch) | |
| tree | 1db86ba3da509eb765b0bfcb59ee625a40f9f5ac /scripts | |
| parent | 21718530997e5381fd31ddcf9cb1de8bc2f3de2c (diff) | |
| download | isort-f86c9f9a1538be47aaf44c74b5bff836c3c2fc6d.tar.gz | |
Remove unecesarry list comprehension
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/build_config_option_docs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/build_config_option_docs.py b/scripts/build_config_option_docs.py index 75b46d29..1a17a6e1 100755 --- a/scripts/build_config_option_docs.py +++ b/scripts/build_config_option_docs.py @@ -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]: |
