Mercurial > cpython-lru_cache-weakref
diff Include/pyerrors.h @ 76283:be0ab722c43d
put PyImportErrorObject with its brothers
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Thu, 12 Apr 2012 21:50:35 -0400 |
| parents | 6825fd9b00ed |
| children | 7a32b9380ffd |
line wrap: on
line diff
--- a/Include/pyerrors.h Thu Apr 12 21:13:08 2012 -0400 +++ b/Include/pyerrors.h Thu Apr 12 21:50:35 2012 -0400 @@ -28,6 +28,13 @@ typedef struct { PyException_HEAD + PyObject *msg; + PyObject *name; + PyObject *path; +} PyImportErrorObject; + +typedef struct { + PyException_HEAD PyObject *encoding; PyObject *object; Py_ssize_t start; @@ -231,13 +238,6 @@ ... ); -typedef struct { - PyException_HEAD - PyObject *msg; - PyObject *name; - PyObject *path; -} PyImportErrorObject; - #ifdef MS_WINDOWS PyAPI_FUNC(PyObject *) PyErr_SetFromWindowsErrWithFilename( int ierr,
