MCPcopy Create free account
hub / github.com/OpenDriveLab/OpenLane / __pyx_pymod_create

Function __pyx_pymod_create

eval/CIPO_evaluation/pycocotools/_mask.c:10191–10212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10189 return result;
10190}
10191static CYTHON_SMALL_CODE PyObject* __pyx_pymod_create(PyObject *spec, CYTHON_UNUSED PyModuleDef *def) {
10192 PyObject *module = NULL, *moddict, *modname;
10193 if (__Pyx_check_single_interpreter())
10194 return NULL;
10195 if (__pyx_m)
10196 return __Pyx_NewRef(__pyx_m);
10197 modname = PyObject_GetAttrString(spec, "name");
10198 if (unlikely(!modname)) goto bad;
10199 module = PyModule_NewObject(modname);
10200 Py_DECREF(modname);
10201 if (unlikely(!module)) goto bad;
10202 moddict = PyModule_GetDict(module);
10203 if (unlikely(!moddict)) goto bad;
10204 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "loader", "__loader__", 1) < 0)) goto bad;
10205 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "origin", "__file__", 1) < 0)) goto bad;
10206 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "parent", "__package__", 1) < 0)) goto bad;
10207 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "submodule_search_locations", "__path__", 0) < 0)) goto bad;
10208 return module;
10209bad:
10210 Py_XDECREF(module);
10211 return NULL;
10212}
10213
10214
10215static CYTHON_SMALL_CODE int __pyx_pymod_exec__mask(PyObject *__pyx_pyinit_module)

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected