Kaydet (Commit) e23eb57f authored tarafından Guido van Rossum's avatar Guido van Rossum

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

need to cxall PyErr_Clear() when it returns NULL.
üst 474b19e2
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment