merge 3.2

This commit is contained in:
Benjamin Peterson 2012-06-01 23:57:50 -07:00
commit 3a37b8393c
1 changed files with 2 additions and 4 deletions

View File

@ -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);