Skip to content

Commit cc7b3f9

Browse files
Fix the Exception names.
1 parent 6117a7b commit cc7b3f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Python/crossinterp_exceptions.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
static PyTypeObject _PyExc_InterpreterError = {
55
PyVarObject_HEAD_INIT(NULL, 0)
6-
.tp_name = "InterpreterError",
6+
.tp_name = "interpreters.InterpreterError",
77
.tp_doc = PyDoc_STR("A cross-interpreter operation failed"),
88
//.tp_base = (PyTypeObject *)PyExc_BaseException,
99
};
@@ -13,7 +13,7 @@ PyObject *PyExc_InterpreterError = (PyObject *)&_PyExc_InterpreterError;
1313

1414
static PyTypeObject _PyExc_InterpreterNotFoundError = {
1515
PyVarObject_HEAD_INIT(NULL, 0)
16-
.tp_name = "InterpreterNotFoundError",
16+
.tp_name = "interpreters.InterpreterNotFoundError",
1717
.tp_doc = PyDoc_STR("An interpreter was not found"),
1818
.tp_base = &_PyExc_InterpreterError,
1919
};
@@ -24,7 +24,7 @@ PyObject *PyExc_InterpreterNotFoundError = (PyObject *)&_PyExc_InterpreterNotFou
2424
static int
2525
_init_not_shareable_error_type(PyInterpreterState *interp)
2626
{
27-
const char *name = "_interpreters.NotShareableError";
27+
const char *name = "interpreters.NotShareableError";
2828
PyObject *base = PyExc_ValueError;
2929
PyObject *ns = NULL;
3030
PyObject *exctype = PyErr_NewException(name, base, ns);

0 commit comments

Comments
 (0)