diff options
author | Guido van Rossum <guido@python.org> | 1997-10-08 15:26:07 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-10-08 15:26:07 (GMT) |
commit | 7dbb48a67fdf18b105f969137ce69cddb00c7000 (patch) | |
tree | 5648171bcd9d493303cd4fbd0029a222bcbc2226 /Modules | |
parent | b0105444e28f5e20fab042549e1bfaa05e5e6c7b (diff) | |
download | cpython-7dbb48a67fdf18b105f969137ce69cddb00c7000.zip cpython-7dbb48a67fdf18b105f969137ce69cddb00c7000.tar.gz cpython-7dbb48a67fdf18b105f969137ce69cddb00c7000.tar.bz2 |
Converted to new exception style (Jack)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/binascii.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Modules/binascii.c b/Modules/binascii.c index 0cd8ffc..295ff74 100644 --- a/Modules/binascii.c +++ b/Modules/binascii.c @@ -755,12 +755,8 @@ initbinascii() PyDict_SetItemString(d, "__doc__", x); Py_XDECREF(x); - Error = PyString_FromString("binascii.Error"); + Error = PyErr_NewException("binascii.Error", NULL, NULL); PyDict_SetItemString(d, "Error", Error); - Incomplete = PyString_FromString("binascii.Incomplete"); + Incomplete = PyErr_NewException("binascii.Incomplete", NULL, NULL); PyDict_SetItemString(d, "Incomplete", Incomplete); - - /* Check for errors */ - if (PyErr_Occurred()) - Py_FatalError("can't initialize module binascii"); } |