mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
PEP 3151 / issue #12555: reworking the OS and IO exception hierarchy.
This commit is contained in:
parent
983b1434bd
commit
6b4883dec0
21 changed files with 689 additions and 454 deletions
|
@ -496,10 +496,11 @@ PyObject *PyErr_SetExcFromWindowsErrWithFilenameObject(
|
|||
return NULL;
|
||||
}
|
||||
|
||||
if (filenameObject != NULL)
|
||||
v = Py_BuildValue("(iOO)", err, message, filenameObject);
|
||||
else
|
||||
v = Py_BuildValue("(iO)", err, message);
|
||||
if (filenameObject == NULL)
|
||||
filenameObject = Py_None;
|
||||
/* This is the constructor signature for passing a Windows error code.
|
||||
The POSIX translation will be figured out by the constructor. */
|
||||
v = Py_BuildValue("(iOOi)", 0, message, filenameObject, err);
|
||||
Py_DECREF(message);
|
||||
|
||||
if (v != NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue