]> granicus.if.org Git - python/commitdiff
Referencable is not a word, so don't use it in an error message <wink>.
authorJeremy Hylton <jeremy@alum.mit.edu>
Mon, 22 Oct 2001 16:31:40 +0000 (16:31 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Mon, 22 Oct 2001 16:31:40 +0000 (16:31 +0000)
Objects/weakrefobject.c

index e8211543452ee8e3c1d2ec6084e835daf9d06ba5..e9d0b4b551646290b8263e22fc6d2a35f09f0ecb 100644 (file)
@@ -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;
     }