Searched refs:error_dict (Results 1 – 1 of 1) sorted by relevance
/third_party/python/Modules/ |
D | errnomodule.c | 50 _add_errcode(PyObject *module_dict, PyObject *error_dict, const char *name_str, int code_int) in _add_errcode() argument 69 if (PyDict_SetItem(error_dict, code, name) < 0) { in _add_errcode() 83 PyObject *error_dict = PyDict_New(); in errno_exec() local 84 if (!module_dict || !error_dict) { in errno_exec() 87 if (PyDict_SetItemString(module_dict, "errorcode", error_dict) < 0) { in errno_exec() 88 Py_DECREF(error_dict); in errno_exec() 95 if (_add_errcode(module_dict, error_dict, name, code) < 0) { \ in errno_exec() 96 Py_DECREF(error_dict); \ in errno_exec() 924 Py_DECREF(error_dict); in errno_exec()
|