8000 gh-119521: Use `PyAPI_DATA`, not `extern`, for `_PyExc_IncompleteInpu… · python/cpython@cf2fe14 · GitHub
[go: up one dir, main page]

Skip to content

Commit cf2fe14

Browse files
committed
gh-119521: Use PyAPI_DATA, not extern, for _PyExc_IncompleteInputError (GH-120955)
1 parent 9d90f58 commit cf2fe14

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Include/internal/pycore_pyerrors.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ void _PyErr_FormatNote(const char *format, ...);
168168
Py_DEPRECATED(3.12) extern void _PyErr_ChainExceptions(PyObject *, PyObject *, PyObject *);
169169

170170
// implementation detail for the codeop module.
171-
extern PyTypeObject _PyExc_IncompleteInputError;
171+
// Exported for test.test_peg_generator.test_c_parser
172+
PyAPI_DATA(PyTypeObject) _PyExc_IncompleteInputError;
172173
#define PyExc_IncompleteInputError ((PyObject *)(&_PyExc_IncompleteInputError))
173174

174175
#ifdef __cplusplus

0 commit comments

Comments
 (0)
0