summaryrefslogtreecommitdiff
path: root/kconfiglib.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-06-15 00:54:54 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2018-06-15 00:54:54 +0200
commitc28a4ebc725f505076475ac03e3b595daa909b54 (patch)
treecff210e79a6fe69faa3dcb3499213ec59f108182 /kconfiglib.py
parentc67d3c49e58a3affb17259c36176fb8b947cda8d (diff)
Rename _copy_deps_to_sc() to _copy_props_to_sc()
More descriptive. Menu node properties are copied, not just their dependencies.
Diffstat (limited to 'kconfiglib.py')
-rw-r--r--kconfiglib.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index 8993af6..a42921c 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -2097,7 +2097,7 @@ class Kconfig(object):
def _parse_properties(self, node):
# Parses and adds properties to the MenuNode 'node' (type, 'prompt',
# 'default's, etc.) Properties are later copied up to symbols and
- # choices in a separate pass after parsing, in _copy_deps_to_sc().
+ # choices in a separate pass after parsing, in _copy_props_to_sc().
#
# An older version of this code added properties directly to symbols
# and choices instead of to their menu nodes (and handled dependency
@@ -2546,7 +2546,7 @@ class Kconfig(object):
elif isinstance(node.item, Symbol):
# Add the node's non-node-specific properties (defaults, ranges,
# etc.) to the Symbol
- self._copy_deps_to_sc(node)
+ self._copy_props_to_sc(node)
# See if we can create an implicit menu rooted at the Symbol and
# finalize each child menu node in that menu if so, like for the
@@ -2577,7 +2577,7 @@ class Kconfig(object):
# outside
if isinstance(node.item, Choice):
# Add the node's non-node-specific properties to the choice
- self._copy_deps_to_sc(node)
+ self._copy_props_to_sc(node)
_finalize_choice(node)
def _propagate_deps(self, node, visible_if):
@@ -2636,7 +2636,7 @@ class Kconfig(object):
cur = cur.next
- def _copy_deps_to_sc(self, node):
+ def _copy_props_to_sc(self, node):
# Copies properties from the menu node 'node' up to its contained
# symbol or choice.
#