simplify tiramisu/option/dynoptiondescription.py
This commit is contained in:
@ -212,7 +212,7 @@ class OptionDescriptionWalk(CacheOptionDescription):
|
||||
if child.impl_is_dynoptiondescription():
|
||||
cname = child.impl_getname()
|
||||
if name.startswith(cname):
|
||||
for suffix in child.impl_get_suffixes(config_bag):
|
||||
for suffix in child.get_suffixes(config_bag):
|
||||
if name == cname + suffix:
|
||||
return child.to_dynoption(subpath,
|
||||
suffix)
|
||||
@ -230,7 +230,7 @@ class OptionDescriptionWalk(CacheOptionDescription):
|
||||
subpath = self.impl_getpath()
|
||||
for child in self._children[1]:
|
||||
if dyn and child.impl_is_dynoptiondescription():
|
||||
for suffix in child.impl_get_suffixes(config_bag):
|
||||
for suffix in child.get_suffixes(config_bag):
|
||||
yield child.to_dynoption(subpath,
|
||||
suffix)
|
||||
else:
|
||||
|
Reference in New Issue
Block a user