Fix typos in comments (#123201)
This commit is contained in:
@@ -1258,9 +1258,9 @@ PyObject_GetOptionalAttr(PyObject *v, PyObject *name, PyObject **result)
|
||||
return 0;
|
||||
}
|
||||
if (tp->tp_getattro == _Py_type_getattro) {
|
||||
int supress_missing_attribute_exception = 0;
|
||||
*result = _Py_type_getattro_impl((PyTypeObject*)v, name, &supress_missing_attribute_exception);
|
||||
if (supress_missing_attribute_exception) {
|
||||
int suppress_missing_attribute_exception = 0;
|
||||
*result = _Py_type_getattro_impl((PyTypeObject*)v, name, &suppress_missing_attribute_exception);
|
||||
if (suppress_missing_attribute_exception) {
|
||||
// return 0 without having to clear the exception
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user