summaryrefslogtreecommitdiff
path: root/menuconfig.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2019-04-17 05:15:55 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2019-04-17 05:16:22 +0200
commite4f268157254df1ef361763bcfdf0258818fa53d (patch)
treed21b7dc5cd85e7612ff59bbdd175d4ab5c7b3107 /menuconfig.py
parentc74e147201f7998b3a848db741d8c6b7b7e1772d (diff)
menuconfig: Style nit
Shorten a bit.
Diffstat (limited to 'menuconfig.py')
-rwxr-xr-xmenuconfig.py10
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):