Skip to content

Commit 8f803d1

Browse files
committed
Fixed issue with ContinueAndNotify in the NodeVisitor class
1 parent afecec3 commit 8f803d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/nodevisitor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def traverse(self, node=None, d=0, name='root'):
5151
ret = self.visit_node(node, d, name)
5252

5353
if node.node_type == ENodeType.list:
54-
if ret == Continue:
54+
if ret == Continue or ret == ContinueAndNotify:
5555
for idx, i in enumerate(node.list):
5656
self.traverse(i, d + 1, 'item' + str(idx))
5757
else:

0 commit comments

Comments
 (0)