Skip to content

Commit d5dcfe3

Browse files
committed
fix mistake and omission in docstring
1 parent f4f5aa1 commit d5dcfe3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

unpythonic/syntax/util.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ def rec(tree):
455455
def splice(tree, rep, tag):
456456
"""Splice in a tree into another tree.
457457
458-
Walk ``tree``, replacing the first occurrence of a ``Name(id=tag)`` with
458+
Walk ``tree``, replacing all occurrences of a ``Name(id=tag)`` with
459459
the tree ``rep``.
460460
461461
This is convenient for first building a skeleton with a marker such as
@@ -475,6 +475,8 @@ def wrapwith(item, body, locref=None):
475475
476476
``item`` must be an expr, used as ``context_expr`` of the ``withitem`` node.
477477
478+
``body`` must be a ``list`` of AST nodes.
479+
478480
``locref`` is an optional AST node to copy source location info from.
479481
If not supplied, ``body[0]`` is used.
480482

0 commit comments

Comments
 (0)