[Python-checkins] python/dist/src/Modules _bsddb.c,1.26,1.27

niemeyer at users.sourceforge.net niemeyer at users.sourceforge.net
Tue Jan 20 10:20:05 EST 2004


Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv19385

Modified Files:
	_bsddb.c 
Log Message:
When key is None, give up if _DB_get_type() returns -1 as well.


Index: _bsddb.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_bsddb.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** _bsddb.c	20 Jan 2004 15:14:55 -0000	1.26
--- _bsddb.c	20 Jan 2004 15:20:03 -0000	1.27
***************
*** 351,354 ****
--- 351,356 ----
      if (keyobj == Py_None) {  /* TODO: is None really okay for keys? */
          type = _DB_get_type(self);
+         if (type == -1)
+             return 0;
          if (type == DB_RECNO || type == DB_QUEUE) {
              PyErr_SetString(





More information about the Python-checkins mailing list