[Python-checkins] python/dist/src/Modules cPickle.c,2.108,2.109

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Sun, 02 Feb 2003 08:14:25 -0800


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

Modified Files:
	cPickle.c 
Log Message:
dump():  Fixed a stupid bug in new code.  It wasn't possible for the bug
to have an effect before protocol 3 is invented, so no test can be
written for this (yet).


Index: cPickle.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/cPickle.c,v
retrieving revision 2.108
retrieving revision 2.109
diff -C2 -d -r2.108 -r2.109
*** cPickle.c	2 Feb 2003 16:09:05 -0000	2.108
--- cPickle.c	2 Feb 2003 16:14:23 -0000	2.109
***************
*** 2218,2222 ****
  
  		bytes[0] = PROTO;
! 		bytes[1] = CURRENT_PROTOCOL_NUMBER;
  		if (self->write_func(self, bytes, 2) < 0)
  			return -1;
--- 2218,2222 ----
  
  		bytes[0] = PROTO;
! 		bytes[1] = self->proto;
  		if (self->write_func(self, bytes, 2) < 0)
  			return -1;