Commit a52cfcb5 authored by gsamain's avatar gsamain Committed by Xavier Thompson

Fix comment of cpdef nogil checks in parsing

parent cb7628da
......@@ -3077,8 +3077,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