Commit 3a3eb3bf authored by gsamain's avatar gsamain

Fix comment of cpdef nogil checks in parsing

parent e93bd5a1
......@@ -3065,8 +3065,8 @@ def p_cdef_statement(s, ctx):
return p_cdef_extern_block(s, pos, ctx)
elif p_nogil(s):
ctx.nogil = 1
# if ctx.overridable:
# error(pos, "cdef blocks cannot be declared cpdef")
if ctx.overridable:
error(pos, "cdef blocks cannot be declared cpdef")
return p_cdef_block(s, ctx)
elif ctx.overridable and ctx.nogil:
error(pos, "nogil blocks cannot be declared cpdef")
......
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