diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-06-02 06:57:50 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-06-02 06:57:50 (GMT) |
commit | 3a37b8393c9e38acbf6b9a7c575e4bde054802a0 (patch) | |
tree | 0b88d0e7b16ca167432e8cb4b2185ff3579a30fd /Python/bltinmodule.c | |
parent | 0dec1bfef98eff72540601fa081b17c33572895d (diff) | |
parent | 8e8fbeae27e3fbfa80ad59fd2aeb563116e6a4c4 (diff) | |
download | cpython-3a37b8393c9e38acbf6b9a7c575e4bde054802a0.zip cpython-3a37b8393c9e38acbf6b9a7c575e4bde054802a0.tar.gz cpython-3a37b8393c9e38acbf6b9a7c575e4bde054802a0.tar.bz2 |
merge 3.2
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r-- | Python/bltinmodule.c | 6 |
1 files changed, 2 insertions, 4 deletions
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 @@ builtin___build_class__(PyObject *self, PyObject *args, PyObject *kwds) 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); |