From 9ae20082de3ea350aec2a4dfa7306f94b6e76435 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Mon, 6 Nov 2017 14:30:38 +0100 Subject: 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. --- kconfiglib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3