mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-13 02:30:16 +08:00
fixed some decorator stuff.
This commit is contained in:
1 parent
43306429f9
commit
80cbed2f9f
1 file changed
+5
@@ -176,6 +176,11 @@ class ParserNode(object):
|
|||||||
if set_parent:
|
if set_parent:
|
||||||
for i in items:
|
for i in items:
|
||||||
i.parent = scope
|
i.parent = scope
|
||||||
|
try:
|
||||||
|
for d in i.decorators:
|
||||||
|
d.parent = scope
|
||||||
|
except AttributeError:
|
||||||
|
pass
|
||||||
content += items
|
content += items
|
||||||
if str(parser.module.name) == 'ordering':
|
if str(parser.module.name) == 'ordering':
|
||||||
#print scope.subscopes
|
#print scope.subscopes
|
||||||
|
|||||||
Reference in new issue
Block a user