mirror of
https://github.com/python/cpython.git
synced 2025-10-06 23:21:06 +00:00
put PyImportErrorObject with its brothers
This commit is contained in:
parent
15af26fa92
commit
633b32a7fa
1 changed files with 7 additions and 7 deletions
|
@ -26,6 +26,13 @@ typedef struct {
|
||||||
PyObject *print_file_and_line;
|
PyObject *print_file_and_line;
|
||||||
} PySyntaxErrorObject;
|
} PySyntaxErrorObject;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
PyException_HEAD
|
||||||
|
PyObject *msg;
|
||||||
|
PyObject *name;
|
||||||
|
PyObject *path;
|
||||||
|
} PyImportErrorObject;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
PyException_HEAD
|
PyException_HEAD
|
||||||
PyObject *encoding;
|
PyObject *encoding;
|
||||||
|
@ -231,13 +238,6 @@ PyAPI_FUNC(PyObject *) PyErr_Format(
|
||||||
...
|
...
|
||||||
);
|
);
|
||||||
|
|
||||||
typedef struct {
|
|
||||||
PyException_HEAD
|
|
||||||
PyObject *msg;
|
|
||||||
PyObject *name;
|
|
||||||
PyObject *path;
|
|
||||||
} PyImportErrorObject;
|
|
||||||
|
|
||||||
#ifdef MS_WINDOWS
|
#ifdef MS_WINDOWS
|
||||||
PyAPI_FUNC(PyObject *) PyErr_SetFromWindowsErrWithFilename(
|
PyAPI_FUNC(PyObject *) PyErr_SetFromWindowsErrWithFilename(
|
||||||
int ierr,
|
int ierr,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue