[Checkins] SVN: persistent/trunk/ Note that OIDs are bytes, not text.

Tres Seaver cvs-admin at zope.org
Fri Dec 14 00:21:18 UTC 2012


Log message for revision 128635:
  Note that OIDs are bytes, not text.

Changed:
  _U  persistent/trunk/
  U   persistent/trunk/persistent/cPickleCache.c

-=-
Modified: persistent/trunk/persistent/cPickleCache.c
===================================================================
--- persistent/trunk/persistent/cPickleCache.c	2012-12-14 00:21:17 UTC (rev 128634)
+++ persistent/trunk/persistent/cPickleCache.c	2012-12-14 00:21:18 UTC (rev 128635)
@@ -1056,7 +1056,7 @@
     {
         Py_DECREF(oid);
         PyErr_Format(PyExc_TypeError,
-                    "Cached object oid must be a string, not a %s",
+                    "Cached object oid must be bytes, not a %s",
                     oid->ob_type->tp_name);
         
         return -1;
@@ -1212,7 +1212,7 @@
     if (!PyBytes_Check(key))
     {
         PyErr_Format(PyExc_TypeError,
-                    "cPickleCache key must be a string, not a %s",
+                    "cPickleCache key must be bytes, not a %s",
                     key->ob_type->tp_name);
         return -1;
     }



More information about the checkins mailing list