From 7a36f5f34456ee1bc5fc65b449f4f81c835ece50 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Fri, 4 Aug 2006 05:17:21 +0000 Subject: [PATCH] SF patch #1534048 (bug #1531003): fix typo in error message --- Objects/typeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 6b484304a3..67e6104fd3 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -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); -- 2.50.1