Rephrase !PyErr_Occurred() comment: may=>can
Issue #29259.
diff --git a/Objects/abstract.c b/Objects/abstract.c
index 1132b84..7b1f196 100644
--- a/Objects/abstract.c
+++ b/Objects/abstract.c
@@ -2233,7 +2233,7 @@
PyObject *result;
/* PyObject_Call() must not be called with an exception set,
- because it may clear it (directly or indirectly) and so the
+ because it can clear it (directly or indirectly) and so the
caller loses its exception */
assert(!PyErr_Occurred());
assert(PyTuple_Check(args));
@@ -2309,7 +2309,7 @@
PyObject *result = NULL;
/* _PyObject_FastCallDict() must not be called with an exception set,
- because it may clear it (directly or indirectly) and so the
+ because it can clear it (directly or indirectly) and so the
caller loses its exception */
assert(!PyErr_Occurred());
diff --git a/Objects/methodobject.c b/Objects/methodobject.c
index 5331cfb..ebea8b3 100644
--- a/Objects/methodobject.c
+++ b/Objects/methodobject.c
@@ -95,7 +95,7 @@
int flags;
/* _PyMethodDef_RawFastCallDict() must not be called with an exception set,
- because it may clear it (directly or indirectly) and so the
+ because it can clear it (directly or indirectly) and so the
caller loses its exception */
assert(!PyErr_Occurred());
diff --git a/Objects/object.c b/Objects/object.c
index dc50131..7b80bcb 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -477,7 +477,7 @@
#ifdef Py_DEBUG
/* PyObject_Repr() must not be called with an exception set,
- because it may clear it (directly or indirectly) and so the
+ because it can clear it (directly or indirectly) and so the
caller loses its exception */
assert(!PyErr_Occurred());
#endif
@@ -526,7 +526,7 @@
#ifdef Py_DEBUG
/* PyObject_Str() must not be called with an exception set,
- because it may clear it (directly or indirectly) and so the
+ because it can clear it (directly or indirectly) and so the
caller loses its exception */
assert(!PyErr_Occurred());
#endif
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index a521177..0fdff31 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -887,7 +887,7 @@
#ifdef Py_DEBUG
/* type_call() must not be called with an exception set,
- because it may clear it (directly or indirectly) and so the
+ because it can clear it (directly or indirectly) and so the
caller loses its exception */
assert(!PyErr_Occurred());
#endif