1
0
forked from VimPlug/jedi

use correct parents

This commit is contained in:
David Halter
2013-04-21 23:32:31 +04:30
parent 80cbed2f9f
commit ddc5b248f1

View File

@@ -175,10 +175,10 @@ class ParserNode(object):
items = getattr(parser.module, c) items = getattr(parser.module, c)
if set_parent: if set_parent:
for i in items: for i in items:
i.parent = scope i.parent = scope.use_as_parent
try: try:
for d in i.decorators: for d in i.decorators:
d.parent = scope d.parent = scope.use_as_parent
except AttributeError: except AttributeError:
pass pass
content += items content += items