mirror of
https://github.com/python/cpython.git
synced 2025-10-22 22:53:06 +00:00
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
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||||
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())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue