Skip to content

Commit 4ef920b

Browse files
encukouestyxx
authored andcommitted
pythongh-119521: Use PyAPI_DATA, not extern, for _PyExc_IncompleteInputError (pythonGH-120955)
1 parent 7977370 commit 4ef920b

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)