summaryrefslogtreecommitdiff
path: root/Cython/Compiler/ModuleNode.py
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2018-03-18 11:06:14 +0100
committerStefan Behnel <stefan_ml@behnel.de>2018-03-18 11:06:14 +0100
commit52486bd081330deb3cd833cc49edb33e1f340cc2 (patch)
tree546e09a460854121e48b6caa96ed0f65e2293b88 /Cython/Compiler/ModuleNode.py
parentd902b7cf24eba5bc5be9e8001d639abd912adf6d (diff)
downloadcython-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.py2
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