mirror of https://github.com/python/cpython.git
Change the exception objects to have the string value "os.error"
instead "posix.error" or "nt.error".
This commit is contained in:
parent
8ec9e639ab
commit
ba9d7c5612
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue