Commit 9ad196f5 authored by Jeremy Hylton's avatar Jeremy Hylton

add line numbers to nodes in the except clause (when possible)

parent 74a4e01c
......@@ -893,7 +893,9 @@ class Transformer:
return Node('ass_list', assigns)
def com_assign_name(self, node, assigning):
return Node('ass_name', node[1], assigning)
n = Node('ass_name', node[1], assigning)
n.lineno = node[2]
return n
def com_assign_trailer(self, primary, node, assigning):
t = node[1][0]
......
......@@ -893,7 +893,9 @@ class Transformer:
return Node('ass_list', assigns)
def com_assign_name(self, node, assigning):
return Node('ass_name', node[1], assigning)
n = Node('ass_name', node[1], assigning)
n.lineno = node[2]
return n
def com_assign_trailer(self, primary, node, assigning):
t = node[1][0]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment