There was an error check in a loop in PythonCmd which called

PythonCmd_Error() but failed to return.  The error wasn't very likely
(only when we run out of memory) but since the check is there we might
as well return the error.  (I think that Barry introduced this buglet
when he added error checks everywhere.)
This commit is contained in:
Guido van Rossum 1998-06-19 04:28:10 +00:00
parent 7b7f6688d2
commit f766e23f63
1 changed files with 1 additions and 1 deletions

View File

@ -1202,7 +1202,7 @@ PythonCmd(clientData, interp, argc, argv)
PyObject *s = PyString_FromString(argv[i + 1]);
if (!s || PyTuple_SetItem(arg, i, s)) {
Py_DECREF(arg);
PythonCmd_Error(interp);
return PythonCmd_Error(interp);
}
}
res = PyEval_CallObject(func, arg);