Converted to new exception style (Jack)

This commit is contained in:
Guido van Rossum 1997-10-08 15:26:07 +00:00
parent b0105444e2
commit 7dbb48a67f
1 changed files with 2 additions and 6 deletions

View File

@ -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");
}