Home
last modified time | relevance | path

Searched refs:reason_obj (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Modules/
D_ssl.c409 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.c577 PyObject *err_value = NULL, *reason_obj = NULL, *lib_obj = NULL; in fill_and_set_sslerror() local
593 reason_obj = PyDict_GetItem(err_codes_to_names, key); in fill_and_set_sslerror()
595 if (reason_obj == NULL) { in fill_and_set_sslerror()
657 if (verify_obj && reason_obj && lib_obj) in fill_and_set_sslerror()
659 lib_obj, reason_obj, errstr, verify_obj, in fill_and_set_sslerror()
661 else if (reason_obj && lib_obj) in fill_and_set_sslerror()
663 lib_obj, reason_obj, errstr, lineno); in fill_and_set_sslerror()
681 if (reason_obj == NULL) in fill_and_set_sslerror()
682 reason_obj = Py_None; in fill_and_set_sslerror()
683 if (_PyObject_SetAttrId(err_value, &PyId_reason, reason_obj)) in fill_and_set_sslerror()