diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2017-11-06 14:30:38 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2017-11-06 14:30:38 +0100 |
| commit | 9ae20082de3ea350aec2a4dfa7306f94b6e76435 (patch) | |
| tree | fba8624ee084160bda8ce8984ff8ad7ff84465bf | |
| parent | cf117de31fc793db6ba5c67c9aa8af06b1e2f69f (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.py | 2 |
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) |
