summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-10-22 16:31:40 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-10-22 16:31:40 (GMT)
commit996fad315cbbc16b33c9983f758787ec69507864 (patch)
treea971223298a26c7bd53f7845f6ad22e2af28f8ad
parent39a362d9f4ed436151d32faf9d5c963c33c5d855 (diff)
downloadcpython-996fad315cbbc16b33c9983f758787ec69507864.zip
cpython-996fad315cbbc16b33c9983f758787ec69507864.tar.gz
cpython-996fad315cbbc16b33c9983f758787ec69507864.tar.bz2
Referencable is not a word, so don't use it in an error message <wink>.
-rw-r--r--Objects/weakrefobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/weakrefobject.c b/Objects/weakrefobject.c
index e821154..e9d0b4b 100644
--- a/Objects/weakrefobject.c
+++ b/Objects/weakrefobject.c
@@ -558,7 +558,7 @@ PyWeakref_NewRef(PyObject *ob, PyObject *callback)
if (!PyType_SUPPORTS_WEAKREFS(ob->ob_type)) {
PyErr_Format(PyExc_TypeError,
- "'%s' objects are not weakly referencable",
+ "cannot create weak reference to '%s' object",
ob->ob_type->tp_name);
return NULL;
}
@@ -602,7 +602,7 @@ PyWeakref_NewProxy(PyObject *ob, PyObject *callback)
if (!PyType_SUPPORTS_WEAKREFS(ob->ob_type)) {
PyErr_Format(PyExc_TypeError,
- "'%s' objects are not weakly referencable",
+ "cannot create weak reference to '%s' object",
ob->ob_type->tp_name);
return NULL;
}