Treelib missing :
This commit is contained in:
parent
bf96cac66f
commit
95f3b9b120
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ def all_children(node):
|
||||||
# Najdi dalšího bratra nějakého typu, nebo None.
|
# Najdi dalšího bratra nějakého typu, nebo None.
|
||||||
# hledá i podtřídy, i.e. get_next_brother_of_type(neco, TreeNode) je prostě succ.
|
# hledá i podtřídy, i.e. get_next_brother_of_type(neco, TreeNode) je prostě succ.
|
||||||
def get_next_brother_of_type(node, type):
|
def get_next_brother_of_type(node, type):
|
||||||
for current in right_brothers(node)
|
for current in right_brothers(node):
|
||||||
if isinstance(current, type):
|
if isinstance(current, type):
|
||||||
return current
|
return current
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue