From 80cbed2f9fe4f3888201d75efa497553cc2c4149 Mon Sep 17 00:00:00 2001 From: David Halter Date: Sun, 21 Apr 2013 23:06:39 +0430 Subject: [PATCH] fixed some decorator stuff. --- jedi/fast_parser.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/jedi/fast_parser.py b/jedi/fast_parser.py index 4f022a5a..36265815 100644 --- a/jedi/fast_parser.py +++ b/jedi/fast_parser.py @@ -176,6 +176,11 @@ class ParserNode(object): if set_parent: for i in items: i.parent = scope + try: + for d in i.decorators: + d.parent = scope + except AttributeError: + pass content += items if str(parser.module.name) == 'ordering': #print scope.subscopes