Change the exception objects to have the string value "os.error"
instead "posix.error" or "nt.error".
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index fab6b40..7307743 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -1853,7 +1853,7 @@
                 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 @@
                 goto finally;
 
 	/* Initialize posix.error exception */
-	PosixError = PyString_FromString("posix.error");
+	PosixError = PyString_FromString("os.error");
 	PyDict_SetItemString(d, "error", PosixError);
 
         if (!PyErr_Occurred())