diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2018-06-06 20:44:58 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2018-06-06 20:44:58 +0200 |
| commit | eef72aa4656fdfa99089d58f016fee0935d33281 (patch) | |
| tree | bffb6dc71b3de82bfdb374a795e9a81ec6049d7a | |
| parent | 92ea878ea315c6fc86ebd49e10a8ab4a2bc8efe7 (diff) | |
standard_config_filename() style nit
| -rw-r--r-- | kconfiglib.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index 1a1d629..cee793e 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -4505,9 +4505,7 @@ def standard_config_filename(): .config file to load/save) if it is set, and ".config" otherwise. """ config_filename = os.environ.get("KCONFIG_CONFIG") - if config_filename is not None: - return config_filename - return ".config" + return config_filename if config_filename is not None else ".config" # # Internal functions |
