Skip to content

Commit 0d1d6fd

Browse files
committed
tiny speedup
1 parent 9fe64bf commit 0d1d6fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

udapi/block/read/conllu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def read_tree_from_lines(self, lines):
201201
root._children.append(node)
202202
else:
203203
raise ValueError(f"Detected a cycle: {node} attached to itself")
204-
elif node.children:
204+
elif node._children:
205205
climbing = parent._parent
206206
while climbing:
207207
if climbing is node:

0 commit comments

Comments
 (0)