summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2017-11-06 14:30:38 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2017-11-06 14:30:38 +0100
commit9ae20082de3ea350aec2a4dfa7306f94b6e76435 (patch)
treefba8624ee084160bda8ce8984ff8ad7ff84465bf
parentcf117de31fc793db6ba5c67c9aa8af06b1e2f69f (diff)
Simplify n/m/y to constant symbol translation
Hit way too seldomly for it to make a performance difference, but a bit neater. We know n, m, and y already exist since they're precreated.
-rw-r--r--kconfiglib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index 0d58ae2..87453a6 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -1107,7 +1107,7 @@ class Kconfig(object):
# ...except we translate n, m, and y into the
# corresponding constant symbols, like the C
# implementation
- token = self._lookup_const_sym(name)
+ token = self.const_syms[name]
else:
token = self._lookup_sym(name)