commit | 44383384b325aa9a492df52393f6cfdde9d9d8a2 | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Mon Oct 08 16:49:26 2001 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Mon Oct 08 16:49:26 2001 +0000 |
tree | 7228f44e0ff9c70abfac7e45e2881a30b243a4e6 | |
parent | 4570455813b2fca60a659b1ac0aa324e28f87619 [diff] |
type_subclasses(): debug build was broken due to typo in new assert().
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index c068548..34a20e1 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c
@@ -1147,7 +1147,7 @@ n = PyList_GET_SIZE(raw); for (i = 0; i < n; i++) { ref = PyList_GET_ITEM(raw, i); - assert(PyWeakref_CheckRef(res)); + assert(PyWeakref_CheckRef(ref)); ref = PyWeakref_GET_OBJECT(ref); if (ref != Py_None) { if (PyList_Append(list, ref) < 0) {