#10869: do not visit root node twice in ast.increment_lineno().

This commit is contained in:
Georg Brandl 2011-01-09 07:38:51 +00:00
parent 5b2d9ddf69
commit 619e7ba814
5 changed files with 17 additions and 8 deletions

View file

@ -173,9 +173,9 @@ and classes for traversing abstract syntax trees:
.. function:: walk(node)
Recursively yield all child nodes of *node*, in no specified order. This is
useful if you only want to modify nodes in place and don't care about the
context.
Recursively yield all descendant nodes in the tree starting at *node*
(including *node* itself), in no specified order. This is useful if you only
want to modify nodes in place and don't care about the context.
.. class:: NodeVisitor()