diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2019-04-17 05:15:55 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2019-04-17 05:16:22 +0200 |
| commit | e4f268157254df1ef361763bcfdf0258818fa53d (patch) | |
| tree | d21b7dc5cd85e7612ff59bbdd175d4ab5c7b3107 | |
| parent | c74e147201f7998b3a848db741d8c6b7b7e1772d (diff) | |
menuconfig: Style nit
Shorten a bit.
| -rwxr-xr-x | menuconfig.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/menuconfig.py b/menuconfig.py index afc7144..2072186 100755 --- a/menuconfig.py +++ b/menuconfig.py @@ -2584,12 +2584,10 @@ def _direct_dep_info(sc): # definition location. The dependencies at each definition location come # from 'depends on' and dependencies inherited from parent items. - if sc.direct_dep is _kconf.y: - return "" - - return 'Direct dependencies (={}):\n{}\n' \ - .format(TRI_TO_STR[expr_value(sc.direct_dep)], - _split_expr_info(sc.direct_dep, 2)) + return "" if sc.direct_dep is _kconf.y else \ + 'Direct dependencies (={}):\n{}\n' \ + .format(TRI_TO_STR[expr_value(sc.direct_dep)], + _split_expr_info(sc.direct_dep, 2)) def _defaults_info(sc): |
