diff options
author | Guido van Rossum <guido@python.org> | 1998-05-14 02:16:20 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-05-14 02:16:20 (GMT) |
commit | 234e260d5ed827364c733bf086d68c4395c0d9e6 (patch) | |
tree | e373907fd93d32fed9155b933daddf96468356c7 /Python/compile.c | |
parent | e23eb57f08aa3f2f379757ed3d97fbf3188a1704 (diff) | |
download | cpython-234e260d5ed827364c733bf086d68c4395c0d9e6.zip cpython-234e260d5ed827364c733bf086d68c4395c0d9e6.tar.gz cpython-234e260d5ed827364c733bf086d68c4395c0d9e6.tar.bz2 |
Since PyDict_GetItem() can't raise an exception any more, there's no
need to call PyErr_Clear() when it returns NULL.
Diffstat (limited to 'Python/compile.c')
-rw-r--r-- | Python/compile.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c index 312600d..422a2af 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -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; |