[Python-checkins] cpython: put PyImportErrorObject with its brothers
benjamin.peterson
python-checkins at python.org
Fri Apr 13 03:50:42 CEST 2012
http://hg.python.org/cpython/rev/be0ab722c43d
changeset: 76283:be0ab722c43d
user: Benjamin Peterson <benjamin at python.org>
date: Thu Apr 12 21:50:35 2012 -0400
summary:
put PyImportErrorObject with its brothers
files:
Include/pyerrors.h | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/Include/pyerrors.h b/Include/pyerrors.h
--- a/Include/pyerrors.h
+++ b/Include/pyerrors.h
@@ -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,
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list