Commit 2b7924e3 authored by Robert Bradshaw's avatar Robert Bradshaw

Enable @locals for methods (ctx is c_class_pxd, not class_pxd)

parent def6e0d0
......@@ -1491,7 +1491,8 @@ def p_statement(s, ctx, first_statement = 0):
elif s.sy == 'IF':
return p_IF_statement(s, ctx)
elif s.sy == 'DECORATOR':
if ctx.level not in ('module', 'class', 'c_class', 'property', 'module_pxd', 'class_pxd'):
if ctx.level not in ('module', 'class', 'c_class', 'property', 'module_pxd', 'c_class_pxd'):
print ctx.level
s.error('decorator not allowed here')
s.level = ctx.level
decorators = p_decorators(s)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment