summaryrefslogtreecommitdiff
path: root/rebuilder.py
diff options
context:
space:
mode:
Diffstat (limited to 'rebuilder.py')
-rw-r--r--rebuilder.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/rebuilder.py b/rebuilder.py
index 47c81138..8a230fcb 100644
--- a/rebuilder.py
+++ b/rebuilder.py
@@ -880,10 +880,10 @@ class TreeRebuilder3k(TreeRebuilder):
newnode.finalbody = [self.visit(n, newnode) for n in node.finalbody]
if node.handlers:
excnode = new.TryExcept()
- _lineno_parent(node, excnode, parent)
- excnode.body = [self.visit(child, newnode) for child in node.body]
- excnode.handlers = [self.visit(child, newnode) for child in node.handlers]
- excnode.orelse = [self.visit(child, newnode) for child in node.orelse]
+ _lineno_parent(node, excnode, newnode)
+ excnode.body = [self.visit(child, excnode) for child in node.body]
+ excnode.handlers = [self.visit(child, excnode) for child in node.handlers]
+ excnode.orelse = [self.visit(child, excnode) for child in node.orelse]
excnode.set_line_info(excnode.last_child())
newnode.body = [excnode]
else: