diff options
author | Brett Cannon <bcannon@gmail.com> | 2007-05-17 02:02:56 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2007-05-17 02:02:56 (GMT) |
commit | 5cd0fca9d89ce16f5ddfb4d6b11ef04fa0ee1de0 (patch) | |
tree | 46a86e993c240e11ebe22f5af0d4029c267a81f1 /Objects | |
parent | 72ef8daa88982dc66b444bc5b5445e109281a186 (diff) | |
download | cpython-5cd0fca9d89ce16f5ddfb4d6b11ef04fa0ee1de0.zip cpython-5cd0fca9d89ce16f5ddfb4d6b11ef04fa0ee1de0.tar.gz cpython-5cd0fca9d89ce16f5ddfb4d6b11ef04fa0ee1de0.tar.bz2 |
Complete deprecation of BaseException.message. Some subclasses were directly
accessing the message attribute instead of using the descriptor.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/exceptions.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/Objects/exceptions.c b/Objects/exceptions.c index 927114e..9faba6a 100644 --- a/Objects/exceptions.c +++ b/Objects/exceptions.c @@ -489,8 +489,6 @@ SystemExit_traverse(PySystemExitObject *self, visitproc visit, void *arg) } static PyMemberDef SystemExit_members[] = { - {"message", T_OBJECT, offsetof(PySystemExitObject, message), 0, - PyDoc_STR("exception message")}, {"code", T_OBJECT, offsetof(PySystemExitObject, code), 0, PyDoc_STR("exception code")}, {NULL} /* Sentinel */ @@ -691,8 +689,6 @@ EnvironmentError_str(PyEnvironmentErrorObject *self) } static PyMemberDef EnvironmentError_members[] = { - {"message", T_OBJECT, offsetof(PyEnvironmentErrorObject, message), 0, - PyDoc_STR("exception message")}, {"errno", T_OBJECT, offsetof(PyEnvironmentErrorObject, myerrno), 0, PyDoc_STR("exception errno")}, {"strerror", T_OBJECT, offsetof(PyEnvironmentErrorObject, strerror), 0, @@ -924,8 +920,6 @@ WindowsError_str(PyWindowsErrorObject *self) } static PyMemberDef WindowsError_members[] = { - {"message", T_OBJECT, offsetof(PyWindowsErrorObject, message), 0, - PyDoc_STR("exception message")}, {"errno", T_OBJECT, offsetof(PyWindowsErrorObject, myerrno), 0, PyDoc_STR("POSIX exception code")}, {"strerror", T_OBJECT, offsetof(PyWindowsErrorObject, strerror), 0, @@ -1156,8 +1150,6 @@ SyntaxError_str(PySyntaxErrorObject *self) } static PyMemberDef SyntaxError_members[] = { - {"message", T_OBJECT, offsetof(PySyntaxErrorObject, message), 0, - PyDoc_STR("exception message")}, {"msg", T_OBJECT, offsetof(PySyntaxErrorObject, msg), 0, PyDoc_STR("exception msg")}, {"filename", T_OBJECT, offsetof(PySyntaxErrorObject, filename), 0, @@ -1592,8 +1584,6 @@ UnicodeError_traverse(PyUnicodeErrorObject *self, visitproc visit, void *arg) } static PyMemberDef UnicodeError_members[] = { - {"message", T_OBJECT, offsetof(PyUnicodeErrorObject, message), 0, - PyDoc_STR("exception message")}, {"encoding", T_OBJECT, offsetof(PyUnicodeErrorObject, encoding), 0, PyDoc_STR("exception encoding")}, {"object", T_OBJECT, offsetof(PyUnicodeErrorObject, object), 0, |