Get rid of get_parent_until.

This commit is contained in:
Dave Halter committed 2017-02-03 09:59:32 +01:00
1 parent b3cb7b5490
commit 445bf6c419
9 files changed
+15 -30

No files matched your search

+1 -1
View File
@@ -69,7 +69,7 @@ def _fix_forward_reference(context, node):
debug.warning('Annotation not parsed: %s' % evaled_node.obj)
return node
else:
module = node.get_parent_until()
module = node.get_root_node()
new_node.move(module.end_pos[0])
new_node.parent = context.tree_node
return new_node