Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 633b32a

Browse files
committed
put PyImportErrorObject with its brothers
1 parent 15af26f commit 633b32a

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

Include/pyerrors.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ typedef struct {
2626
PyObject *print_file_and_line;
2727
} PySyntaxErrorObject;
2828

29+
typedef struct {
30+
PyException_HEAD
31+
PyObject *msg;
32+
PyObject *name;
33+
PyObject *path;
34+
} PyImportErrorObject;
35+
2936
typedef struct {
3037
PyException_HEAD
3138
PyObject *encoding;
@@ -231,13 +238,6 @@ PyAPI_FUNC(PyObject *) PyErr_Format(
231238
...
232239
);
233240

234-
typedef struct {
235-
PyException_HEAD
236-
PyObject *msg;
237-
PyObject *name;
238-
PyObject *path;
239-
} PyImportErrorObject;
240-
241241
#ifdef MS_WINDOWS
242242
PyAPI_FUNC(PyObject *) PyErr_SetFromWindowsErrWithFilename(
243243
int ierr,

0 commit comments

Comments
 (0)