Browse Source

Treelib missing :

export_seznamu_prednasek
Pavel 'LEdoian' Turinsky 5 years ago
parent
commit
95f3b9b120
  1. 2
      seminar/treelib.py

2
seminar/treelib.py

@ -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

Loading…
Cancel
Save