Commits

Guido van Rossum  committed 2c5c399

Converted to new exception style (Jack)

  • Participants
  • Parent commits 2138cf3
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Modules/binascii.c

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