Mailing List Archive

python/dist/src/Python errors.c,2.72,2.73
Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv14776

Modified Files:
errors.c
Log Message:
Fix errors to pep277 checkin identified by Neal Norwitz.

Index: errors.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/errors.c,v
retrieving revision 2.72
retrieving revision 2.73
diff -C2 -d -r2.72 -r2.73
*** errors.c 3 Oct 2002 05:10:39 -0000 2.72
--- errors.c 4 Oct 2002 00:09:38 -0000 2.73
***************
*** 335,339 ****
PyObject *name = filename ? PyString_FromString(filename) : NULL;
PyObject *result = PyErr_SetFromErrnoWithFilenameObject(exc, name);
! Py_DECREF(name);
return result;
}
--- 335,339 ----
PyObject *name = filename ? PyString_FromString(filename) : NULL;
PyObject *result = PyErr_SetFromErrnoWithFilenameObject(exc, name);
! Py_XDECREF(name);
return result;
}
***************
*** 445,449 ****
PyExc_WindowsError,
ierr, name);
! Py_XDECREF(result);
return result;
}
--- 445,449 ----
PyExc_WindowsError,
ierr, name);
! Py_XDECREF(name);
return result;
}
***************
*** 460,464 ****
PyExc_WindowsError,
ierr, name);
! Py_XDECREF(result);
return result;
}
--- 460,464 ----
PyExc_WindowsError,
ierr, name);
! Py_XDECREF(name);
return result;
}