commit | 3a37b8393c9e38acbf6b9a7c575e4bde054802a0 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Fri Jun 01 23:57:50 2012 -0700 |
committer | Benjamin Peterson <benjamin@python.org> | Fri Jun 01 23:57:50 2012 -0700 |
tree | 0b88d0e7b16ca167432e8cb4b2185ff3579a30fd | |
parent | 0dec1bfef98eff72540601fa081b17c33572895d [diff] | |
parent | 8e8fbeae27e3fbfa80ad59fd2aeb563116e6a4c4 [diff] |
merge 3.2
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 47e8c8f..e453fdd 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c
@@ -163,10 +163,8 @@ cls = PyEval_CallObjectWithKeywords(meta, margs, mkw); Py_DECREF(margs); } - if (cls != NULL && PyCell_Check(cell)) { - Py_INCREF(cls); - PyCell_SET(cell, cls); - } + if (cls != NULL && PyCell_Check(cell)) + PyCell_Set(cell, cls); Py_DECREF(cell); } Py_DECREF(ns);