diff options
author | Christian Heimes <christian@cheimes.de> | 2013-11-14 00:48:32 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-11-14 00:48:32 (GMT) |
commit | c6ae813011bc588dd78f0f2fbbff61d789fe2c19 (patch) | |
tree | 024daed2375675e91272f4ffefb0d93ca12774b9 /Python/peephole.c | |
parent | 6a3db25c70965790893e51febe139215b22b40c5 (diff) | |
parent | 541067a64077998b486be183fdaffec42fe3fae8 (diff) | |
download | cpython-c6ae813011bc588dd78f0f2fbbff61d789fe2c19.zip cpython-c6ae813011bc588dd78f0f2fbbff61d789fe2c19.tar.gz cpython-c6ae813011bc588dd78f0f2fbbff61d789fe2c19.tar.bz2 |
merge
Diffstat (limited to 'Python/peephole.c')
-rw-r--r-- | Python/peephole.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/peephole.c b/Python/peephole.c index a49790a..4185462 100644 --- a/Python/peephole.c +++ b/Python/peephole.c @@ -275,6 +275,7 @@ fold_unaryops_on_constants(unsigned char *codestr, PyObject *consts, PyObject *v len_consts = PyList_GET_SIZE(consts); if (PyList_Append(consts, newconst)) { Py_DECREF(newconst); + PyErr_Clear(); return 0; } Py_DECREF(newconst); |