[Python-checkins] CVS: python/dist/src/Modules socketmodule.c,1.136,1.137

A.M. Kuchling akuchling@users.sourceforge.net
Wed, 07 Feb 2001 12:41:19 -0800


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

Modified Files:
	socketmodule.c 
Log Message:
Remove the optional integer argument to SSL_write; now it will always send
    the entire string passed to it


Index: socketmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.136
retrieving revision 1.137
diff -C2 -r1.136 -r1.137
*** socketmodule.c	2001/02/06 22:58:05	1.136
--- socketmodule.c	2001/02/07 20:41:17	1.137
***************
*** 2217,2227 ****
  {
  	char *data;
! 	size_t len = 0;
    
! 	if (!PyArg_ParseTuple(args, "s#|i:write", &data, &len))
  		return NULL;
-   
- 	if (!len)
- 		len = strlen(data);
    
  	len = SSL_write(self->ssl, data, len);
--- 2217,2224 ----
  {
  	char *data;
! 	size_t len;
    
! 	if (!PyArg_ParseTuple(args, "s#:write", &data, &len))
  		return NULL;
    
  	len = SSL_write(self->ssl, data, len);