Commit 7b4777b8 authored by gsamain's avatar gsamain

Fix comment of cpdef nogil checks in parsing

parent a3337039
......@@ -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