From 8087311cd91bedbf2b24ccdc3925ca641a2de33c Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Thu, 27 Sep 2018 17:21:42 +0200 Subject: Unmatched endchoice/endif/endmenu formatting nit Easier to read. --- kconfiglib.py | 12 +++++------- 1 file 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. -- cgit v1.2.3