summaryrefslogtreecommitdiff
path: root/nodes.py
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2009-03-17 10:08:15 +0100
committerEmile Anclin <emile.anclin@logilab.fr>2009-03-17 10:08:15 +0100
commitbcd9bfbaa4a2f3562950ea7d4a46336ddbd84372 (patch)
tree59f4347d5d1b8b81664e3eee691501bc247fe522 /nodes.py
parent817ef1ed6869f8d2689d2742b024b393565a49fb (diff)
downloadastroid-git-bcd9bfbaa4a2f3562950ea7d4a46336ddbd84372.tar.gz
missing monkey patch
--HG-- branch : _ast_compat
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"""