@@ -91,39 +91,21 @@ typedef PyOSErrorObject PyWindowsErrorObject;
91
91
/* Error handling definitions */
92
92
93
93
PyAPI_FUNC (void ) _PyErr_SetKeyError (PyObject * );
94
- PyAPI_FUNC (_PyErr_StackItem * ) _PyErr_GetTopmostException (PyThreadState * tstate );
95
- PyAPI_FUNC (PyObject * ) _PyErr_GetHandledException (PyThreadState * );
96
- PyAPI_FUNC (void ) _PyErr_SetHandledException (PyThreadState * , PyObject * );
97
- PyAPI_FUNC (void ) _PyErr_GetExcInfo (PyThreadState * , PyObject * * , PyObject * * , PyObject * * );
98
94
99
95
/* Context manipulation (PEP 3134) */
100
96
101
97
Py_DEPRECATED (3.12 ) PyAPI_FUNC (void ) _PyErr_ChainExceptions (PyObject * , PyObject * , PyObject * );
102
98
PyAPI_FUNC (void ) _PyErr_ChainExceptions1 (PyObject * );
103
99
104
- /* Like PyErr_Format(), but saves current exception as __context__ and
105
- __cause__.
106
- */
107
- PyAPI_FUNC (PyObject * ) _PyErr_FormatFromCause (
108
- PyObject * exception ,
109
- const char * format , /* ASCII-encoded string */
110
- ...
111
- );
112
-
113
100
/* In exceptions.c */
114
101
115
- PyAPI_FUNC (int ) _PyException_AddNote (
116
- PyObject * exc ,
117
- PyObject * note );
118
-
119
102
PyAPI_FUNC (PyObject * ) PyUnstable_Exc_PrepReraiseStar (
120
103
PyObject * orig ,
121
104
PyObject * excs );
122
105
123
106
/* In signalmodule.c */
124
107
125
108
int PySignal_SetWakeupFd (int fd );
126
- PyAPI_FUNC (int ) _PyErr_CheckSignals (void );
127
109
128
110
/* Support for adding program text to SyntaxErrors */
129
111
@@ -143,18 +125,6 @@ PyAPI_FUNC(PyObject *) PyErr_ProgramTextObject(
143
125
PyObject * filename ,
144
126
int lineno );
145
127
146
- PyAPI_FUNC (PyObject * ) _PyErr_ProgramDecodedTextObject (
147
- PyObject * filename ,
148
- int lineno ,
149
- const char * encoding );
150
-
151
- PyAPI_FUNC (PyObject * ) _PyUnicodeTranslateError_Create (
152
- PyObject * object ,
153
- Py_ssize_t start ,
154
- Py_ssize_t end ,
155
- const char * reason /* UTF-8 encoded string */
156
- );
157
-
158
128
PyAPI_FUNC (void ) _PyErr_WriteUnraisableMsg (
159
129
const char * err_msg ,
160
130
PyObject * obj );
@@ -163,16 +133,4 @@ PyAPI_FUNC(void) _Py_NO_RETURN _Py_FatalErrorFunc(
163
133
const char * func ,
164
134
const char * message );
165
135
166
- PyAPI_FUNC (void ) _Py_NO_RETURN _Py_FatalErrorFormat (
167
- const char * func ,
168
- const char * format ,
169
- ...);
170
-
171
- extern PyObject * _PyErr_SetImportErrorWithNameFrom (
172
- PyObject * ,
173
- PyObject * ,
174
- PyObject * ,
175
- PyObject * );
176
-
177
-
178
136
#define Py_FatalError (message ) _Py_FatalErrorFunc(__func__, (message))
0 commit comments