mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
merge 3.2
This commit is contained in:
commit
3a37b8393c
1 changed files with 2 additions and 4 deletions
|
@ -163,10 +163,8 @@ builtin___build_class__(PyObject *self, PyObject *args, PyObject *kwds)
|
||||||
cls = PyEval_CallObjectWithKeywords(meta, margs, mkw);
|
cls = PyEval_CallObjectWithKeywords(meta, margs, mkw);
|
||||||
Py_DECREF(margs);
|
Py_DECREF(margs);
|
||||||
}
|
}
|
||||||
if (cls != NULL && PyCell_Check(cell)) {
|
if (cls != NULL && PyCell_Check(cell))
|
||||||
Py_INCREF(cls);
|
PyCell_Set(cell, cls);
|
||||||
PyCell_SET(cell, cls);
|
|
||||||
}
|
|
||||||
Py_DECREF(cell);
|
Py_DECREF(cell);
|
||||||
}
|
}
|
||||||
Py_DECREF(ns);
|
Py_DECREF(ns);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue