Since PyDict_GetItem() can't raise an exception any more, there's no

need to cxall PyErr_Clear() when it returns NULL.
This commit is contained in:
Guido van Rossum 1998-05-14 01:49:48 +00:00
parent 474b19e2ab
commit e23eb57f08
1 changed files with 1 additions and 4 deletions

View File

@ -356,10 +356,7 @@ PyFrame_LocalsToFast(f, clear)
for (; --j >= 0; ) {
PyObject *key = PyTuple_GetItem(map, j);
PyObject *value = PyDict_GetItem(locals, key);
if (value == NULL)
PyErr_Clear();
else
Py_INCREF(value);
Py_XINCREF(value);
if (value != NULL || clear) {
Py_XDECREF(fast[j]);
fast[j] = value;