mirror of
https://github.com/python/cpython.git
synced 2025-10-21 06:02:21 +00:00
Since PyDict_GetItem() can't raise an exception any more, there's no
need to call PyErr_Clear() when it returns NULL.
This commit is contained in:
parent
e23eb57f08
commit
234e260d5e
2 changed files with 0 additions and 4 deletions
|
@ -3340,7 +3340,6 @@ optimize(c)
|
|||
name = GETNAMEOBJ(oparg);
|
||||
v = PyDict_GetItem(c->c_locals, name);
|
||||
if (v == NULL) {
|
||||
PyErr_Clear();
|
||||
if (opcode == LOAD_NAME &&
|
||||
(c->c_flags&CO_OPTIMIZED))
|
||||
cur_instr[0] = LOAD_GLOBAL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue