Treelib missing :

This commit is contained in:
Pavel 'LEdoian' Turinsky 2020-03-18 22:44:27 +01:00
parent bf96cac66f
commit 95f3b9b120

View file

@ -109,7 +109,7 @@ def all_children(node):
# 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.
def get_next_brother_of_type(node, type):
for current in right_brothers(node)
for current in right_brothers(node):
if isinstance(current, type):
return current