summaryrefslogtreecommitdiff
path: root/kconfiglib.py
diff options
context:
space:
mode:
Diffstat (limited to 'kconfiglib.py')
-rw-r--r--kconfiglib.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index 29f384b..47581d5 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -2608,13 +2608,11 @@ class Kconfig(object):
else:
# A valid endchoice/endif/endmenu is caught by the 'end_token'
# check above
- self._parse_error("no corresponding 'choice'"
- if t0 is _T_ENDCHOICE else
- "no corresponding 'if'"
- if t0 is _T_ENDIF else
- "no corresponding 'menu'"
- if t0 is _T_ENDMENU else
- "unrecognized construct")
+ self._parse_error(
+ "no corresponding 'choice'" if t0 is _T_ENDCHOICE else
+ "no corresponding 'if'" if t0 is _T_ENDIF else
+ "no corresponding 'menu'" if t0 is _T_ENDMENU else
+ "unrecognized construct")
# End of file reached. Terminate the final node and return it.