summaryrefslogtreecommitdiff
path: root/nodes.py
diff options
context:
space:
mode:
Diffstat (limited to 'nodes.py')
-rw-r--r--nodes.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nodes.py b/nodes.py
index 6bb16a90..2bda9aaf 100644
--- a/nodes.py
+++ b/nodes.py
@@ -415,11 +415,11 @@ def if_block_range(node, lineno):
If.block_range = if_block_range
-def set_line_info(self, lastchild):
+def if_set_line_info(self, lastchild):
self.fromlineno = self.lineno
self.tolineno = lastchild.tolineno
self.blockstart_tolineno = self.test.tolineno
-If.set_line_info
+If.set_line_info = if_set_line_info
def try_except_block_range(node, lineno):
"""handle block line numbers range for try/except statements"""