Skip to content

Commit

Permalink
Fix missing argument
Browse files Browse the repository at this point in the history
  • Loading branch information
jnothman committed Nov 1, 2017
1 parent 1595c9a commit bee41c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numpydoc/numpydoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def matching_pending_xref(node):
return (isinstance(node, pending_xref) and
node[0].astext() == '[%s]' % ref_text)

for xref_node in ref.parent.traverse():
for xref_node in ref.parent.traverse(matching_pending_xref):
xref_node.replace(xref_node[0], Text('[%s]' % new_text))
ref.replace(ref_text, new_text.copy())

Expand Down

0 comments on commit bee41c1

Please sign in to comment.