Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3a37b83

Browse files
committed
merge 3.2
2 parents 0dec1bf + 8e8fbea commit 3a37b83

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Python/bltinmodule.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,8 @@ builtin___build_class__(PyObject *self, PyObject *args, PyObject *kwds)
163163
cls = PyEval_CallObjectWithKeywords(meta, margs, mkw);
164164
Py_DECREF(margs);
165165
}
166-
if (cls != NULL && PyCell_Check(cell)) {
167-
Py_INCREF(cls);
168-
PyCell_SET(cell, cls);
169-
}
166+
if (cls != NULL && PyCell_Check(cell))
167+
PyCell_Set(cell, cls);
170168
Py_DECREF(cell);
171169
}
172170
Py_DECREF(ns);

0 commit comments

Comments
 (0)