diff options
| author | Benjamin Peterson <benjamin@python.org> | 2012-06-01 23:57:50 -0700 |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2012-06-01 23:57:50 -0700 |
| commit | 9fbe1474149bd42bcd95909aa9531d8204928c50 (patch) | |
| tree | c2d57e314e848b4b45f8df89a98728438a174bf5 /Python/bltinmodule.c | |
| parent | b7f7942fbb2d799c27154865ea6d59613ea67daf (diff) | |
| parent | f537e1076cff1a46a732a094052dc0060b0414a6 (diff) | |
| download | cpython-9fbe1474149bd42bcd95909aa9531d8204928c50.tar.gz | |
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 47e8c8fe69..e453fdd665 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); |
