Commit ba9d7c56 authored by Guido van Rossum's avatar Guido van Rossum

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

instead "posix.error" or "nt.error".
parent 8ec9e639
...@@ -1853,7 +1853,7 @@ initnt() ...@@ -1853,7 +1853,7 @@ initnt()
goto finally; goto finally;
/* Initialize nt.error exception */ /* Initialize nt.error exception */
PosixError = PyString_FromString("nt.error"); PosixError = PyString_FromString("os.error");
PyDict_SetItemString(d, "error", PosixError); PyDict_SetItemString(d, "error", PosixError);
if (!PyErr_Occurred()) if (!PyErr_Occurred())
...@@ -1881,7 +1881,7 @@ initposix() ...@@ -1881,7 +1881,7 @@ initposix()
goto finally; goto finally;
/* Initialize posix.error exception */ /* Initialize posix.error exception */
PosixError = PyString_FromString("posix.error"); PosixError = PyString_FromString("os.error");
PyDict_SetItemString(d, "error", PosixError); PyDict_SetItemString(d, "error", PosixError);
if (!PyErr_Occurred()) if (!PyErr_Occurred())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment