summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2006-08-04 05:17:21 (GMT)
committerFred Drake <fdrake@acm.org>2006-08-04 05:17:21 (GMT)
commit7a36f5f34456ee1bc5fc65b449f4f81c835ece50 (patch)
tree2bb974cefe8b08be1e52a09ed54fd6f3c84461f3
parent9a70f95ee84007d1aef64fd89e1168dba2ae2b83 (diff)
downloadcpython-7a36f5f34456ee1bc5fc65b449f4f81c835ece50.zip
cpython-7a36f5f34456ee1bc5fc65b449f4f81c835ece50.tar.gz
cpython-7a36f5f34456ee1bc5fc65b449f4f81c835ece50.tar.bz2
SF patch #1534048 (bug #1531003): fix typo in error message
-rw-r--r--Objects/typeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index 6b48430..67e6104 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);