Kaydet (Commit) ba9d7c56 authored tarafından 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".
üst 8ec9e639
......@@ -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())
......
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