summaryrefslogtreecommitdiffstats
path: root/Lib/compiler/transformer.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2000-02-15 21:30:48 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2000-02-15 21:30:48 (GMT)
commitd603dee4a3d25585103779444e34b8c1a86be065 (patch)
treec34ee155b82d2fb09960dafade79de13f3781ac7 /Lib/compiler/transformer.py
parentca1ad182f2b9e15fbed62a36b202708c23992dbe (diff)
downloadcpython-d603dee4a3d25585103779444e34b8c1a86be065.zip
cpython-d603dee4a3d25585103779444e34b8c1a86be065.tar.gz
cpython-d603dee4a3d25585103779444e34b8c1a86be065.tar.bz2
add line numbers to nodes in the except clause (when possible)
Diffstat (limited to 'Lib/compiler/transformer.py')
-rw-r--r--Lib/compiler/transformer.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/compiler/transformer.py b/Lib/compiler/transformer.py
index 2fb442a..63aac83 100644
--- a/Lib/compiler/transformer.py
+++ b/Lib/compiler/transformer.py
@@ -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]