summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-10-08 16:49:26 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-10-08 16:49:26 (GMT)
commit44383384b325aa9a492df52393f6cfdde9d9d8a2 (patch)
tree7228f44e0ff9c70abfac7e45e2881a30b243a4e6 /Objects
parent4570455813b2fca60a659b1ac0aa324e28f87619 (diff)
downloadcpython-44383384b325aa9a492df52393f6cfdde9d9d8a2.zip
cpython-44383384b325aa9a492df52393f6cfdde9d9d8a2.tar.gz
cpython-44383384b325aa9a492df52393f6cfdde9d9d8a2.tar.bz2
type_subclasses(): debug build was broken due to typo in new assert().
Diffstat (limited to 'Objects')
-rw-r--r--Objects/typeobject.c2
1 files changed, 1 insertions, 1 deletions
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 @@ type_subclasses(PyTypeObject *type, PyObject *args_ignored)
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) {