[Python-checkins] python/dist/src/Modules cPickle.c,2.125,2.126

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Tue, 04 Feb 2003 19:46:19 -0800


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

Modified Files:
	cPickle.c 
Log Message:
Typo repair.


Index: cPickle.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/cPickle.c,v
retrieving revision 2.125
retrieving revision 2.126
diff -C2 -d -r2.125 -r2.126
*** cPickle.c	4 Feb 2003 21:47:44 -0000	2.125
--- cPickle.c	5 Feb 2003 03:46:17 -0000	2.126
***************
*** 1481,1485 ****
  /* A helper for save_tuple.  Push the len elements in tuple t on the stack. */
  static int
! store_tuple_elememts(Picklerobject *self, PyObject *t, int len)
  {
  	int i;
--- 1481,1485 ----
  /* A helper for save_tuple.  Push the len elements in tuple t on the stack. */
  static int
! store_tuple_elements(Picklerobject *self, PyObject *t, int len)
  {
  	int i;
***************
*** 1504,1508 ****
  /* Tuples are ubiquitous in the pickle protocols, so many techniques are
   * used across protocols to minimize the space needed to pickle them.
!  * Tuples are also the only builtin immuatable type that can be recursive
   * (a tuple can be reached from itself), and that requires some subtle
   * magic so that it works in all cases.  IOW, this is a long routine.
--- 1504,1508 ----
  /* Tuples are ubiquitous in the pickle protocols, so many techniques are
   * used across protocols to minimize the space needed to pickle them.
!  * Tuples are also the only builtin immutable type that can be recursive
   * (a tuple can be reached from itself), and that requires some subtle
   * magic so that it works in all cases.  IOW, this is a long routine.
***************
*** 1554,1558 ****
  	if (len <= 3 && self->proto >= 2) {
  		/* Use TUPLE{1,2,3} opcodes. */
! 		if (store_tuple_elememts(self, args, len) < 0)
  			goto finally;
  		if (PyDict_GetItem(self->memo, py_tuple_id)) {
--- 1554,1558 ----
  	if (len <= 3 && self->proto >= 2) {
  		/* Use TUPLE{1,2,3} opcodes. */
! 		if (store_tuple_elements(self, args, len) < 0)
  			goto finally;
  		if (PyDict_GetItem(self->memo, py_tuple_id)) {
***************
*** 1579,1583 ****
  		goto finally;
  
! 	if (store_tuple_elememts(self, args, len) < 0)
  		goto finally;
  
--- 1579,1583 ----
  		goto finally;
  
! 	if (store_tuple_elements(self, args, len) < 0)
  		goto finally;