From 6d523aeea6cf7b7762e7e93152eb6bf80b1f1e78 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Fri, 12 Jun 2015 12:44:51 +0200 Subject: Compactify _parse_factor() slightly. --- kconfiglib.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/kconfiglib.py b/kconfiglib.py index abbf231..6ea7255 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -854,7 +854,6 @@ class Config(object): return (NOT, self._parse_factor(feed)) sym_or_string = feed.get_next() - if not isinstance(sym_or_string, (Symbol, str)): _parse_error(self._line, "malformed expression.", self._filename, self._linenr) @@ -864,7 +863,6 @@ class Config(object): self._cur_sym_or_choice.referenced_syms.add(sym_or_string) next_token = feed.peek_next() - # For conditional expressions ('depends on ', '... if ', # etc.), "m" and m are rewritten to "m" && MODULES. if next_token != T_EQUAL and next_token != T_UNEQUAL: -- cgit v1.2.3