File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -308,7 +308,7 @@ and classes for traversing abstract syntax trees:
308308 value=Name(id='data', ctx=Load()),
309309 slice=Index(value=Constant(value=node.id)),
310310 ctx=node.ctx
311- ), node)
311+ )
312312
313313 Keep in mind that if the node you're operating on has child nodes you must
314314 either transform the child nodes yourself or call the :meth: `generic_visit `
Original file line number Diff line number Diff line change @@ -408,11 +408,11 @@ class NodeTransformer(NodeVisitor):
408408 class RewriteName(NodeTransformer):
409409
410410 def visit_Name(self, node):
411- return copy_location( Subscript(
411+ return Subscript(
412412 value=Name(id='data', ctx=Load()),
413413 slice=Index(value=Str(s=node.id)),
414414 ctx=node.ctx
415- ), node)
415+ )
416416
417417 Keep in mind that if the node you're operating on has child nodes you must
418418 either transform the child nodes yourself or call the :meth:`generic_visit`
You can’t perform that action at this time.
0 commit comments