From ddc5b248f15c4a166d7c4c442574c7b2752b4a86 Mon Sep 17 00:00:00 2001 From: David Halter Date: Sun, 21 Apr 2013 23:32:31 +0430 Subject: [PATCH] use correct parents --- jedi/fast_parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jedi/fast_parser.py b/jedi/fast_parser.py index 36265815..b1040cb8 100644 --- a/jedi/fast_parser.py +++ b/jedi/fast_parser.py @@ -175,10 +175,10 @@ class ParserNode(object): items = getattr(parser.module, c) if set_parent: for i in items: - i.parent = scope + i.parent = scope.use_as_parent try: for d in i.decorators: - d.parent = scope + d.parent = scope.use_as_parent except AttributeError: pass content += items