https://github.com/python/cpython/commit/97c2e6ac279e3cd016259a2457ccf4a1505649b3
commit: 97c2e6ac279e3cd016259a2457ccf4a1505649b3
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: erlend-aasland <[email protected]>
date: 2024-10-27T22:19:37Z
summary:

[3.13] gh-126035: add missing whitespace to *Py_EnterRecursiveCall() messages 
(GH-126036) (#126058)

(cherry picked from commit 19e93e2e269889ecb3c4c039091abff489f247c2)

Co-authored-by: Bénédikt Tran <[email protected]>

files:
M Modules/_bisectmodule.c
M Modules/_ctypes/_ctypes.c

diff --git a/Modules/_bisectmodule.c b/Modules/_bisectmodule.c
index 56322c48b7cd35..9b146265445d9a 100644
--- a/Modules/_bisectmodule.c
+++ b/Modules/_bisectmodule.c
@@ -70,7 +70,7 @@ internal_bisect_right(PyObject *list, PyObject *item, 
Py_ssize_t lo, Py_ssize_t
     if (sq_item == NULL) {
         return -1;
     }
-    if (Py_EnterRecursiveCall("in _bisect.bisect_right")) {
+    if (Py_EnterRecursiveCall(" in _bisect.bisect_right")) {
         return -1;
     }
     PyTypeObject *tp = Py_TYPE(item);
@@ -254,7 +254,7 @@ internal_bisect_left(PyObject *list, PyObject *item, 
Py_ssize_t lo, Py_ssize_t h
     if (sq_item == NULL) {
         return -1;
     }
-    if (Py_EnterRecursiveCall("in _bisect.bisect_left")) {
+    if (Py_EnterRecursiveCall(" in _bisect.bisect_left")) {
         return -1;
     }
     PyTypeObject *tp = Py_TYPE(item);
diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c
index 236adaf6c4c418..bd98f5edc23188 100644
--- a/Modules/_ctypes/_ctypes.c
+++ b/Modules/_ctypes/_ctypes.c
@@ -2413,7 +2413,7 @@ PyCSimpleType_from_param_impl(PyObject *type, 
PyTypeObject *cls,
         return NULL;
     }
     if (as_parameter) {
-        if (_Py_EnterRecursiveCall("while processing _as_parameter_")) {
+        if (_Py_EnterRecursiveCall(" while processing _as_parameter_")) {
             Py_DECREF(as_parameter);
             Py_XDECREF(exc);
             return NULL;

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to