]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-127787: Move _PyUnicodeError_GetParams() to the internal C API (#128803)
authorVictor Stinner <vstinner@python.org>
Tue, 14 Jan 2025 10:17:20 +0000 (11:17 +0100)
committerGitHub <noreply@github.com>
Tue, 14 Jan 2025 10:17:20 +0000 (11:17 +0100)
Include/cpython/pyerrors.h
Include/internal/pycore_pyerrors.h

index 49a6265e5eb02f104d01809f3976e9e49a9eafbc..b36b4681f5dddb58de67f1cb1f2c4b1b3720369a 100644 (file)
@@ -94,12 +94,6 @@ PyAPI_FUNC(void) _PyErr_ChainExceptions1(PyObject *);
 
 /* In exceptions.c */
 
-PyAPI_FUNC(int) _PyUnicodeError_GetParams(
-    PyObject *self,
-    PyObject **obj, Py_ssize_t *objlen,
-    Py_ssize_t *start, Py_ssize_t *end,
-    int as_bytes);
-
 PyAPI_FUNC(PyObject*) PyUnstable_Exc_PrepReraiseStar(
      PyObject *orig,
      PyObject *excs);
index 6f2fdda9a9f12f5e204bd483c53d1a737e73eb02..8dea2d34117430b9a64d4ca3109c2f8ed574445b 100644 (file)
@@ -190,6 +190,15 @@ Py_DEPRECATED(3.12) extern void _PyErr_ChainExceptions(PyObject *, PyObject *, P
 PyAPI_DATA(PyTypeObject) _PyExc_IncompleteInputError;
 #define PyExc_IncompleteInputError ((PyObject *)(&_PyExc_IncompleteInputError))
 
+extern int _PyUnicodeError_GetParams(
+    PyObject *self,
+    PyObject **obj,
+    Py_ssize_t *objlen,
+    Py_ssize_t *start,
+    Py_ssize_t *end,
+    int as_bytes);
+
+
 #ifdef __cplusplus
 }
 #endif