[Python-checkins] r51084 - python/trunk/Objects/typeobject.c

fred.drake python-checkins at python.org
Fri Aug 4 07:17:21 CEST 2006


Author: fred.drake
Date: Fri Aug  4 07:17:21 2006
New Revision: 51084

Modified:
   python/trunk/Objects/typeobject.c
Log:
SF patch #1534048 (bug #1531003): fix typo in error message

Modified: python/trunk/Objects/typeobject.c
==============================================================================
--- python/trunk/Objects/typeobject.c	(original)
+++ python/trunk/Objects/typeobject.c	Fri Aug  4 07:17:21 2006
@@ -1490,7 +1490,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);


More information about the Python-checkins mailing list