Fix typos in comments (#123201)

This commit is contained in:
Wulian
2024-08-21 20:49:23 +08:00
committed by GitHub
parent 7b26c4d1e3
commit 94036e43a8
9 changed files with 13 additions and 13 deletions

View File

@@ -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;
}