[Zope-Checkins] CVS: ZODB3/persistent - cPickleCache.c:1.87.10.4
Steve Alexander
steve at cat-box.net
Thu Jan 29 08:32:48 EST 2004
Update of /cvs-repository/ZODB3/persistent
In directory cvs.zope.org:/tmp/cvs-serv23075
Modified Files:
Tag: zope3-zodb3-devel-branch
cPickleCache.c
Log Message:
Added a new section to the doctest of Cache.__delitem__ to demonstrate
the bug I introduced in my previous checkin.
Yep, I forgot the {} :-/ Why can't C be more like Python?
=== ZODB3/persistent/cPickleCache.c 1.87.10.3 => 1.87.10.4 ===
--- ZODB3/persistent/cPickleCache.c:1.87.10.3 Wed Jan 28 12:25:34 2004
+++ ZODB3/persistent/cPickleCache.c Thu Jan 29 08:32:17 2004
@@ -864,9 +864,10 @@
/* unlink this item from the ring */
v = PyDict_GetItem(self->data, key);
- if (v == NULL)
+ if (v == NULL) {
PyErr_SetObject(PyExc_KeyError, key);
return -1;
+ }
if (PyType_Check(v)) {
self->klass_count--;
More information about the Zope-Checkins
mailing list