[Python-checkins] python/dist/src/Modules cPickle.c,2.99,2.100

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Fri, 31 Jan 2003 13:10:40 -0800


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

Modified Files:
	cPickle.c 
Log Message:
Ignore the state returned by __reduce__ if it is Py_None.


Index: cPickle.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/cPickle.c,v
retrieving revision 2.99
retrieving revision 2.100
diff -C2 -d -r2.99 -r2.100
*** cPickle.c	6 Jan 2003 12:41:25 -0000	2.99
--- cPickle.c	31 Jan 2003 21:10:31 -0000	2.100
***************
*** 2087,2090 ****
--- 2087,2092 ----
  		if (size > 2) {
  			state = PyTuple_GET_ITEM(t, 2);
+ 			if (state == Py_None)
+ 				state = NULL;
  		}