]> granicus.if.org Git - python/commitdiff
SF patch #1534048 (bug #1531003): fix typo in error message
authorFred Drake <fdrake@acm.org>
Fri, 4 Aug 2006 05:17:21 +0000 (05:17 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 4 Aug 2006 05:17:21 +0000 (05:17 +0000)
Objects/typeobject.c

index 6b484304a3777de81a2802ec7980cad68d1c305b..67e6104fd3d1d3328e1a8fae6b2a7258b9fa08e2 100644 (file)
@@ -1490,7 +1490,7 @@ subtype_getweakref(PyObject *obj, void *context)
 
        if (obj->ob_type->tp_weaklistoffset == 0) {
                PyErr_SetString(PyExc_AttributeError,
-                               "This object has no __weaklist__");
+                               "This object has no __weakref__");
                return NULL;
        }
        assert(obj->ob_type->tp_weaklistoffset > 0);