minor code simplification
authorStefan Behnel <stefan_ml@behnel.de>
Sun, 8 Jul 2012 19:44:44 +0000 (21:44 +0200)
committerStefan Behnel <stefan_ml@behnel.de>
Sun, 8 Jul 2012 19:44:44 +0000 (21:44 +0200)
Cython/Compiler/ExprNodes.py
Cython/Utility/CythonFunction.c

index f5d0cc1..e3da028 100755 (executable)
@@ -10027,8 +10027,7 @@ proto="""
         (((x) < 0) & ((unsigned long)(x) == 0-(unsigned long)(x)))
 """)
 
-binding_cfunc_utility_code = TempitaUtilityCode.load(
-    "CythonFunction", context=vars(Naming))
+binding_cfunc_utility_code = UtilityCode.load_cached("CythonFunction", "CythonFunction.c")
 fused_function_utility_code = TempitaUtilityCode.load(
         "FusedFunction",
         "CythonFunction.c",
index 6500081..2372734 100644 (file)
@@ -59,6 +59,7 @@ static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *m,
 static int __Pyx_CyFunction_init(void);
 
 //////////////////// CythonFunction ////////////////////
+//@substitute: naming
 
 static PyObject *
 __Pyx_CyFunction_get_doc(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *closure)
@@ -181,7 +182,7 @@ __Pyx_CyFunction_set_dict(__pyx_CyFunctionObject *op, PyObject *value)
 static PyObject *
 __Pyx_CyFunction_get_globals(CYTHON_UNUSED __pyx_CyFunctionObject *op)
 {
-    PyObject* dict = PyModule_GetDict({{module_cname}});
+    PyObject* dict = PyModule_GetDict(${module_cname});
     Py_XINCREF(dict);
     return dict;
 }