Commit e7e923f3 authored by Stefan Behnel's avatar Stefan Behnel

Split Python compatibility adaptation code out of ModulePreamble section and...

Split Python compatibility adaptation code out of ModulePreamble section and into its own separate section to allow moving it around and support using CYTHON_INLINE etc. in it.
parent cb511f97
...@@ -639,6 +639,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): ...@@ -639,6 +639,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
self._put_setup_code(code, "CppInitCode") self._put_setup_code(code, "CppInitCode")
else: else:
self._put_setup_code(code, "CInitCode") self._put_setup_code(code, "CInitCode")
self._put_setup_code(code, "PythonCompatibility")
self._put_setup_code(code, "MathInitCode") self._put_setup_code(code, "MathInitCode")
if options.c_line_in_traceback: if options.c_line_in_traceback:
......
This diff is collapsed.
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