Searched refs:reason_obj (Results 1 – 2 of 2) sorted by relevance
/external/python/cpython2/Modules/ |
D | _ssl.c | 409 PyObject *err_value = NULL, *reason_obj = NULL, *lib_obj = NULL; in fill_and_set_sslerror() local 420 reason_obj = PyDict_GetItem(err_codes_to_names, key); in fill_and_set_sslerror() 422 if (reason_obj == NULL) { in fill_and_set_sslerror() 440 if (reason_obj && lib_obj) in fill_and_set_sslerror() 442 lib_obj, reason_obj, errstr, lineno); in fill_and_set_sslerror() 460 if (reason_obj == NULL) in fill_and_set_sslerror() 461 reason_obj = Py_None; in fill_and_set_sslerror() 462 if (PyObject_SetAttrString(err_value, "reason", reason_obj)) in fill_and_set_sslerror()
|
/external/python/cpython3/Modules/ |
D | _ssl.c | 608 PyObject *err_value = NULL, *reason_obj = NULL, *lib_obj = NULL; in fill_and_set_sslerror() local 624 reason_obj = PyDict_GetItemWithError(err_codes_to_names, key); in fill_and_set_sslerror() 626 if (reason_obj == NULL && PyErr_Occurred()) { in fill_and_set_sslerror() 687 if (verify_obj && reason_obj && lib_obj) in fill_and_set_sslerror() 689 lib_obj, reason_obj, errstr, verify_obj, in fill_and_set_sslerror() 691 else if (reason_obj && lib_obj) in fill_and_set_sslerror() 693 lib_obj, reason_obj, errstr, lineno); in fill_and_set_sslerror() 711 if (reason_obj == NULL) in fill_and_set_sslerror() 712 reason_obj = Py_None; in fill_and_set_sslerror() 713 if (_PyObject_SetAttrId(err_value, &PyId_reason, reason_obj)) in fill_and_set_sslerror()
|