]> granicus.if.org Git - python/commitdiff
Change the exception objects to have the string value "os.error"
authorGuido van Rossum <guido@python.org>
Tue, 29 Apr 1997 15:49:54 +0000 (15:49 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 29 Apr 1997 15:49:54 +0000 (15:49 +0000)
instead "posix.error" or "nt.error".

Modules/posixmodule.c

index fab6b4031f11f6289c90819cba3e732d7e7217bc..73077431c0a0ae2a2c2099870d0f5bbb94879b15 100644 (file)
@@ -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())