From: Guido van Rossum Date: Thu, 2 Mar 2000 13:55:01 +0000 (+0000) Subject: Mark discovered a bug in his patch: he didn't *use* PyExc_WindowsError X-Git-Tag: v1.6a1~307 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0b556709680c7223a77f42c45bac0fc00c06b798;p=python Mark discovered a bug in his patch: he didn't *use* PyExc_WindowsError in PyErr_SetFromWindowsErrWithFilename() like he intended to... :-) --- diff --git a/Python/errors.c b/Python/errors.c index b3e1910789..ebce5ddbb3 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);