diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index fab6b4031f1..73077431c0a 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -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())