[Zope-Checkins] CVS: Zope/lib/python/BTrees - BucketTemplate.c:1.24
Andreas Jung
andreas@zope.com
Mon, 7 Jan 2002 11:49:05 -0500
Update of /cvs-repository/Zope/lib/python/BTrees
In directory cvs.zope.org:/tmp/cvs-serv16686
Modified Files:
BucketTemplate.c
Log Message:
improved error message of Bucket constructor when e.g. [2,3] is passed
as argument
=== Zope/lib/python/BTrees/BucketTemplate.c 1.23 => 1.24 ===
ind = -1;
Py_DECREF(o);
- if (ind < 0) goto err;
+ if (ind < 0) {
+ PyErr_SetString(PyExc_TypeError,"Sequence must contain 2-item tuples");
+ goto err;
+ }
}
Py_XDECREF(items);