]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-126035: add missing whitespace to *Py_EnterRecursiveCall() messages (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 27 Oct 2024 22:12:20 +0000 (23:12 +0100)
committerGitHub <noreply@github.com>
Sun, 27 Oct 2024 22:12:20 +0000 (22:12 +0000)
(cherry picked from commit 19e93e2e269889ecb3c4c039091abff489f247c2)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Modules/_bisectmodule.c
Modules/_ctypes/_ctypes.c

index 0773bbd191931df2ca06d22e4a6f313a8e3a0cf6..d79946c84061aef87bb327ff15b65baad0712200 100644 (file)
@@ -66,7 +66,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);
@@ -250,7 +250,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);
index d72614d2b8d972d5a7a945236e565b34cc866f02..b6d45e926476843b9725085d34c8244f5f79e9aa 100644 (file)
@@ -2269,7 +2269,7 @@ PyCSimpleType_from_param(PyObject *type, PyObject *value)
         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;