Change the exception objects to have the string value "os.error"

instead "posix.error" or "nt.error".
This commit is contained in:
Guido van Rossum 1997-04-29 15:49:54 +00:00
parent 8ec9e639ab
commit ba9d7c5612
1 changed files with 2 additions and 2 deletions

View File

@ -1853,7 +1853,7 @@ initnt()
goto finally;
/* Initialize nt.error exception */
PosixError = PyString_FromString("nt.error");
PosixError = PyString_FromString("os.error");
PyDict_SetItemString(d, "error", PosixError);
if (!PyErr_Occurred())
@ -1881,7 +1881,7 @@ initposix()
goto finally;
/* Initialize posix.error exception */
PosixError = PyString_FromString("posix.error");
PosixError = PyString_FromString("os.error");
PyDict_SetItemString(d, "error", PosixError);
if (!PyErr_Occurred())