[Python-checkins] CVS: python/dist/src/Modules _codecsmodule.c,2.6,2.6.6.1

Anthony Baxter anthonybaxter@users.sourceforge.net
Thu, 01 Nov 2001 03:38:46 -0800


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

Modified Files:
      Tag: release21-maint
	_codecsmodule.c 
Log Message:
backport of fix from 2.7
  Fix for bug [ #433047 ] missing args to PyArg_ParseTuple



Index: _codecsmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_codecsmodule.c,v
retrieving revision 2.6
retrieving revision 2.6.6.1
diff -C2 -d -r2.6 -r2.6.6.1
*** _codecsmodule.c	2000/09/21 21:09:45	2.6
--- _codecsmodule.c	2001/11/01 11:38:44	2.6.6.1
***************
*** 441,445 ****
      const char *errors = NULL;
  
!     if (!PyArg_ParseTuple(args, "O|zi:utf_16_le_encode",
  			  &str, &errors))
  	return NULL;
--- 441,445 ----
      const char *errors = NULL;
  
!     if (!PyArg_ParseTuple(args, "O|z:utf_16_le_encode",
  			  &str, &errors))
  	return NULL;
***************
*** 464,468 ****
      const char *errors = NULL;
  
!     if (!PyArg_ParseTuple(args, "O|zi:utf_16_be_encode",
  			  &str, &errors))
  	return NULL;
--- 464,468 ----
      const char *errors = NULL;
  
!     if (!PyArg_ParseTuple(args, "O|z:utf_16_be_encode",
  			  &str, &errors))
  	return NULL;