summaryrefslogtreecommitdiff
path: root/Cython/Compiler/ModuleNode.py
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2019-12-23 08:39:54 +0100
committerStefan Behnel <stefan_ml@behnel.de>2019-12-23 08:39:54 +0100
commit2498606d3d5f9884bb4a1554da9ac85236949434 (patch)
tree2c558fe1e98707039912e685ac59789ea146f57e /Cython/Compiler/ModuleNode.py
parentc03afec7a7a2e44f26a1c74b9d57b65557f184e5 (diff)
downloadcython-simplify_utility_loading.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.simplify_utility_loading
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")