diff Objects/typeobject.c @ 39366:8296fb96cc18 2.4

SF patch #1534048 (bug #1531003): fix typo in error message
author Fred Drake <fdrake@acm.org>
date Fri, 04 Aug 2006 05:16:04 +0000
parents 3cdde45a468d
children 13cf344de8c9
line wrap: on
line diff
--- a/Objects/typeobject.c	Sun Jul 30 20:18:54 2006 +0000
+++ b/Objects/typeobject.c	Fri Aug 04 05:16:04 2006 +0000
@@ -1458,7 +1458,7 @@
 
 	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);