summaryrefslogtreecommitdiff
path: root/Cython/Compiler/ModuleNode.py
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2019-12-23 11:10:04 +0100
committerGitHub <noreply@github.com>2019-12-23 11:10:04 +0100
commit0177b8bde0334ccfdca11cb2c65bc006d859e96b (patch)
tree2c558fe1e98707039912e685ac59789ea146f57e /Cython/Compiler/ModuleNode.py
parentc03afec7a7a2e44f26a1c74b9d57b65557f184e5 (diff)
downloadcython-0177b8bde0334ccfdca11cb2c65bc006d859e96b.tar.gz
Simplify the utility code loading by requiring the source file to be named explicitly. It was almost always passed anyway, so having a non-trivial search algorithm in place for a rare case of unnecessary laziness is just code bloat. (GH-3280)
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 35d5e4f6e..586035604 100644
--- a/Cython/Compiler/ModuleNode.py
+++ b/Cython/Compiler/ModuleNode.py
@@ -3286,4 +3286,4 @@ packed_struct_utility_code = UtilityCode(proto="""
#endif
""", impl="", proto_block='utility_code_proto_before_types')
-capsule_utility_code = UtilityCode.load("Capsule")
+capsule_utility_code = UtilityCode.load("Capsule", "Capsule.c")