Commit 04034e28 authored by Stefan Behnel's avatar Stefan Behnel

Minor code simplification.

parent 22c7351c
......@@ -3721,12 +3721,8 @@ def p_module(s, pxd, full_module_name, ctx=Ctx):
stacklevel=1 if cython.compiled else 2,
)
level = 'module_pxd' if pxd else 'module'
doc = p_doc_string(s)
if pxd:
level = 'module_pxd'
else:
level = 'module'
body = p_statement_list(s, ctx(level=level), first_statement = 1)
if s.sy != 'EOF':
s.error("Syntax error in statement [%s,%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