comparison Python/pythonrun.c @ 17207:16f145aac2ec legacy-trunk

call_sys_exitfunc(): Remove unused variable f.
author Fred Drake <fdrake@acm.org>
date Fri, 23 Mar 2001 17:34:02 +0000
parents eb06a02e0507
children 215dc725db84
comparison
equal deleted inserted replaced
17206:782239488058 17207:16f145aac2ec
1254 call_sys_exitfunc(void) 1254 call_sys_exitfunc(void)
1255 { 1255 {
1256 PyObject *exitfunc = PySys_GetObject("exitfunc"); 1256 PyObject *exitfunc = PySys_GetObject("exitfunc");
1257 1257
1258 if (exitfunc) { 1258 if (exitfunc) {
1259 PyObject *res, *f; 1259 PyObject *res;
1260 Py_INCREF(exitfunc); 1260 Py_INCREF(exitfunc);
1261 PySys_SetObject("exitfunc", (PyObject *)NULL); 1261 PySys_SetObject("exitfunc", (PyObject *)NULL);
1262 res = PyEval_CallObject(exitfunc, (PyObject *)NULL); 1262 res = PyEval_CallObject(exitfunc, (PyObject *)NULL);
1263 if (res == NULL) { 1263 if (res == NULL) {
1264 if (!PyErr_ExceptionMatches(PyExc_SystemExit)) { 1264 if (!PyErr_ExceptionMatches(PyExc_SystemExit)) {