summaryrefslogtreecommitdiffstats
path: root/Python/errors.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-03-02 13:55:01 (GMT)
committerGuido van Rossum <guido@python.org>2000-03-02 13:55:01 (GMT)
commit0b556709680c7223a77f42c45bac0fc00c06b798 (patch)
tree28b7d24f64b8fbbd8d3910f2e7c78093f4e86374 /Python/errors.c
parent76ec0d6d76bf2416d92a51f0317cfe1094e9e5f6 (diff)
downloadcpython-0b556709680c7223a77f42c45bac0fc00c06b798.zip
cpython-0b556709680c7223a77f42c45bac0fc00c06b798.tar.gz
cpython-0b556709680c7223a77f42c45bac0fc00c06b798.tar.bz2
Mark discovered a bug in his patch: he didn't *use* PyExc_WindowsError
in PyErr_SetFromWindowsErrWithFilename() like he intended to... :-)
Diffstat (limited to 'Python/errors.c')
-rw-r--r--Python/errors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/errors.c b/Python/errors.c
index b3e1910..ebce5dd 100644
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -384,7 +384,7 @@ PyObject *PyErr_SetFromWindowsErrWithFilename(
else
v = Py_BuildValue("(is)", err, s);
if (v != NULL) {
- PyErr_SetObject(PyExc_EnvironmentError, v);
+ PyErr_SetObject(PyExc_WindowsError, v);
Py_DECREF(v);
}
LocalFree(s);