File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1704,7 +1704,7 @@ and classes for traversing abstract syntax trees:
17041704 value=Name(id='data', ctx=Load()),
17051705 slice=Constant(value=node.id),
17061706 ctx=node.ctx
1707- ), node)
1707+ )
17081708
17091709 Keep in mind that if the node you're operating on has child nodes you must
17101710 either transform the child nodes yourself or call the :meth: `generic_visit `
Original file line number Diff line number Diff line change @@ -443,11 +443,11 @@ class NodeTransformer(NodeVisitor):
443443 class RewriteName(NodeTransformer):
444444
445445 def visit_Name(self, node):
446- return copy_location( Subscript(
446+ return Subscript(
447447 value=Name(id='data', ctx=Load()),
448448 slice=Constant(value=node.id),
449449 ctx=node.ctx
450- ), node)
450+ )
451451
452452 Keep in mind that if the node you're operating on has child nodes you must
453453 either transform the child nodes yourself or call the :meth:`generic_visit`
You can’t perform that action at this time.
0 commit comments