summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-04-29 15:49:54 (GMT)
committerGuido van Rossum <guido@python.org>1997-04-29 15:49:54 (GMT)
commitba9d7c5612912f3e87e918470c94507d7699df5a (patch)
tree6c108ab3067b4a61326252dc2833d3d5a41d1e19 /Modules
parent8ec9e639abb7089dfa171f612b07591e36647414 (diff)
downloadcpython-ba9d7c5612912f3e87e918470c94507d7699df5a.zip
cpython-ba9d7c5612912f3e87e918470c94507d7699df5a.tar.gz
cpython-ba9d7c5612912f3e87e918470c94507d7699df5a.tar.bz2
Change the exception objects to have the string value "os.error"
instead "posix.error" or "nt.error".
Diffstat (limited to 'Modules')
-rw-r--r--Modules/posixmodule.c4
1 files changed, 2 insertions, 2 deletions
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 @@ 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())