From eec0137173c84f2ab040e2941f79fe72ef054b5c Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Wed, 17 Jun 2015 19:59:27 +0200 Subject: _tokenize() comment nits. --- kconfiglib.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kconfiglib.py b/kconfiglib.py index a6d1f5d..f620e11 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -666,18 +666,18 @@ class Config(object): # Jump past it i = id_keyword_match.end() - # Keyword? keyword = _get_keyword(name) if keyword is not None: + # It's a keyword append(keyword) - # What would ordinarily be considered a name is treated as a - # string after certain tokens. elif previous in STRING_LEX: + # What would ordinarily be considered a symbol name is + # treated as a string after certain tokens append(name) else: - # We're dealing with a symbol. _sym_lookup() will take care - # of allocating a new Symbol instance if it's the first - # time we see it. + # It's a symbol name. _sym_lookup() will take care of + # allocating a new Symbol instance if it's the first time + # we see it. sym = self._sym_lookup(name, not for_eval) if previous == T_CONFIG or previous == T_MENUCONFIG: -- cgit v1.2.3