diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2018-03-18 11:06:14 +0100 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2018-03-18 11:06:14 +0100 |
commit | 52486bd081330deb3cd833cc49edb33e1f340cc2 (patch) | |
tree | 546e09a460854121e48b6caa96ed0f65e2293b88 /Cython/Compiler/ModuleNode.py | |
parent | d902b7cf24eba5bc5be9e8001d639abd912adf6d (diff) | |
download | cython-52486bd081330deb3cd833cc49edb33e1f340cc2.tar.gz |
Remove invalid GCC attribute usage when PEP-489 is enabled.
Diffstat (limited to 'Cython/Compiler/ModuleNode.py')
-rw-r--r-- | Cython/Compiler/ModuleNode.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 31266ec80..3e18010ef 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -2297,7 +2297,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): code.putln("") # main module init code lives in Py_mod_exec function, not in PyInit function - code.putln("static int %s(PyObject *%s) CYTHON_SMALL_CODE " % ( + code.putln("static int %s(PyObject *%s)" % ( self.mod_init_func_cname(Naming.pymodule_exec_func_cname, env), Naming.pymodinit_module_arg)) code.putln("#endif") # PEP489 |