summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-09-27 17:21:42 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2018-09-27 17:22:13 +0200
commit8087311cd91bedbf2b24ccdc3925ca641a2de33c (patch)
treebe493258551440835f0ad5635c4d89b669ef1c95
parentc91e17c3f0b5410328b2d51c70224804e8b133cc (diff)
Unmatched endchoice/endif/endmenu formatting nit
Easier to read.
-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.