summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2019-05-06 12:55:09 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2019-05-06 13:05:37 +0200
commit0befc4be60b1edc26ebeb1b7833933055c388204 (patch)
tree10e269fbe0878ce9ae23789798a111da3a544155
parentae147b3d2727b222653183b5abf77e38c052b595 (diff)
guiconfig: Micro-optimize tree item creation some more
Mostly to get things consistent with _update_jump_to_display().
-rwxr-xr-xguiconfig.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/guiconfig.py b/guiconfig.py
index 886025d..8520ec0 100755
--- a/guiconfig.py
+++ b/guiconfig.py
@@ -566,9 +566,11 @@ def _create_kconfig_tree(parent):
# Micro-optimize this a bit.
insert = tree.insert
id_ = id
+ Symbol_ = Symbol
for node in _kconf.node_iter():
+ item = node.item
insert("", "end", iid=id_(node),
- values=node.item.name if node.item.__class__ is Symbol else ())
+ values=item.name if item.__class__ is Symbol_ else "")
return frame, tree