Commit 2bd2e7e5 authored by gsamain's avatar gsamain

Remove nogil flag on c_class definition in parsing

parent 12206c2b
...@@ -3530,14 +3530,12 @@ def p_c_class_definition(s, pos, ctx): ...@@ -3530,14 +3530,12 @@ def p_c_class_definition(s, pos, ctx):
if ctx.visibility not in ('public', 'extern') and not ctx.api: if ctx.visibility not in ('public', 'extern') and not ctx.api:
error(s.position(), "Name options only allowed for 'public', 'api', or 'extern' C class") error(s.position(), "Name options only allowed for 'public', 'api', or 'extern' C class")
objstruct_name, typeobj_name, check_size = p_c_class_options(s) objstruct_name, typeobj_name, check_size = p_c_class_options(s)
#nogil = p_nogil(s)
nogil = ctx.nogil
if s.sy == ':': if s.sy == ':':
if ctx.level == 'module_pxd': if ctx.level == 'module_pxd':
body_level = 'c_class_pxd' body_level = 'c_class_pxd'
else: else:
body_level = 'c_class' body_level = 'c_class'
doc, body = p_suite_with_docstring(s, Ctx(level=body_level, nogil=nogil)) doc, body = p_suite_with_docstring(s, Ctx(level=body_level))
else: else:
s.expect_newline("Syntax error in C class definition") s.expect_newline("Syntax error in C class definition")
doc = None doc = None
...@@ -3573,9 +3571,7 @@ def p_c_class_definition(s, pos, ctx): ...@@ -3573,9 +3571,7 @@ def p_c_class_definition(s, pos, ctx):
check_size = check_size, check_size = check_size,
in_pxd = ctx.level == 'module_pxd', in_pxd = ctx.level == 'module_pxd',
doc = doc, doc = doc,
body = body, body = body)
nogil = nogil)
# nogil = nogil or ctx.nogil)
def p_c_class_options(s): def p_c_class_options(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