diff options
author | Michael W. Hudson <mwh@python.net> | 2006-05-28 21:19:03 (GMT) |
---|---|---|
committer | Michael W. Hudson <mwh@python.net> | 2006-05-28 21:19:03 (GMT) |
commit | 27596279a2890a61ba29407e5b5098e484cb9b9e (patch) | |
tree | 7ecfb46f6eefd887e0785c659ee1c97745089d4b | |
parent | 43ab100cdcbdc47750f78d65cf08be6016c9fd2d (diff) | |
download | cpython-27596279a2890a61ba29407e5b5098e484cb9b9e.zip cpython-27596279a2890a61ba29407e5b5098e484cb9b9e.tar.gz cpython-27596279a2890a61ba29407e5b5098e484cb9b9e.tar.bz2 |
use the UnicodeError traversal and clearing functions in UnicodeError
subclasses.
-rw-r--r-- | Objects/exceptions.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Objects/exceptions.c b/Objects/exceptions.c index 0babc02..38e621d 100644 --- a/Objects/exceptions.c +++ b/Objects/exceptions.c @@ -1608,8 +1608,8 @@ static PyTypeObject _PyExc_UnicodeEncodeError = { (destructor)UnicodeError_dealloc, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (reprfunc)UnicodeEncodeError_str, 0, 0, 0, Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HAVE_GC, - PyDoc_STR("Unicode encoding error."), (traverseproc)BaseException_traverse, - (inquiry)BaseException_clear, 0, 0, 0, 0, 0, UnicodeError_members, + PyDoc_STR("Unicode encoding error."), (traverseproc)UnicodeError_traverse, + (inquiry)UnicodeError_clear, 0, 0, 0, 0, 0, UnicodeError_members, 0, &_PyExc_UnicodeError, 0, 0, 0, offsetof(PyUnicodeErrorObject, dict), (initproc)UnicodeEncodeError_init, 0, BaseException_new, }; @@ -1680,8 +1680,8 @@ static PyTypeObject _PyExc_UnicodeDecodeError = { (destructor)UnicodeError_dealloc, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (reprfunc)UnicodeDecodeError_str, 0, 0, 0, Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HAVE_GC, - PyDoc_STR("Unicode decoding error."), (traverseproc)BaseException_traverse, - (inquiry)BaseException_clear, 0, 0, 0, 0, 0, UnicodeError_members, + PyDoc_STR("Unicode decoding error."), (traverseproc)UnicodeError_traverse, + (inquiry)UnicodeError_clear, 0, 0, 0, 0, 0, UnicodeError_members, 0, &_PyExc_UnicodeError, 0, 0, 0, offsetof(PyUnicodeErrorObject, dict), (initproc)UnicodeDecodeError_init, 0, BaseException_new, }; |