mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Mark discovered a bug in his patch: he didn't *use* PyExc_WindowsError
in PyErr_SetFromWindowsErrWithFilename() like he intended to... :-)
This commit is contained in:
parent
76ec0d6d76
commit
0b55670968
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue