From 81597fd6beade40901e064954700166b855dcb12 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Thu, 1 Mar 2018 15:39:48 +0100 Subject: Simplify _parse_factor() error handling "malformed expression" should be clear enough for a missing end parenthesis too. Expressions are generally short. --- kconfiglib.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'kconfiglib.py') diff --git a/kconfiglib.py b/kconfiglib.py index 51e1b5d..c5b0cdf 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -2295,8 +2295,6 @@ class Kconfig(object): if self._check_token(_T_CLOSE_PAREN): return expr_parse - self._parse_error("missing end parenthesis") - self._parse_error("malformed expression") # -- cgit v1.2.3