Searched refs:codes_dict (Results 1 – 1 of 1) sorted by relevance
1654 add_error(PyObject *errors_module, PyObject *codes_dict, in add_error() argument1667 if (PyDict_SetItemString(codes_dict, error_string, num) < 0) { in add_error()1696 PyObject *codes_dict = PyDict_New(); in add_errors_module() local1698 if (codes_dict == NULL || rev_codes_dict == NULL) { in add_errors_module()1703 if (add_error(errors_module, codes_dict, rev_codes_dict, \ in add_errors_module()1756 Py_INCREF(codes_dict); in add_errors_module()1757 if (PyModule_AddObject(errors_module, "codes", codes_dict) < 0) { in add_errors_module()1758 Py_DECREF(codes_dict); in add_errors_module()1761 Py_CLEAR(codes_dict); in add_errors_module()1773 Py_XDECREF(codes_dict); in add_errors_module()