From: Guido van Rossum Date: Tue, 29 Apr 1997 15:49:54 +0000 (+0000) Subject: Change the exception objects to have the string value "os.error" X-Git-Tag: v1.5a1~115 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ba9d7c5612912f3e87e918470c94507d7699df5a;p=python 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 fab6b4031f..73077431c0 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())