summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-11-14 01:48:32 +0100
committerChristian Heimes <christian@cheimes.de>2013-11-14 01:48:32 +0100
commitc6ae813011bc588dd78f0f2fbbff61d789fe2c19 (patch)
tree024daed2375675e91272f4ffefb0d93ca12774b9 /Python
parent6a3db25c70965790893e51febe139215b22b40c5 (diff)
parent541067a64077998b486be183fdaffec42fe3fae8 (diff)
downloadcpython-git-c6ae813011bc588dd78f0f2fbbff61d789fe2c19.tar.gz
merge
Diffstat (limited to 'Python')
-rw-r--r--Python/peephole.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/peephole.c b/Python/peephole.c
index a49790a60f..4185462b34 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);