]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
SF patch #1534048 (bug #1531003): fix typo in error message
authorFred Drake <fdrake@acm.org>
Fri, 4 Aug 2006 05:16:04 +0000 (05:16 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 4 Aug 2006 05:16:04 +0000 (05:16 +0000)
Objects/typeobject.c

index c2312fe0e609172a45b731c4a74fdce093de6ab7..d6e678027689de8043a41add70db6e83edc54090 100644 (file)
@@ -1458,7 +1458,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);