diff Modules/socketmodule.c @ 16472:549e993a476c legacy-trunk

Remove the optional integer argument to SSL_write; now it will always send the entire string passed to it
author Andrew M. Kuchling <amk@amk.ca>
date Wed, 07 Feb 2001 20:41:17 +0000
parents 807ca697620a
children b25131bc6ec7
line wrap: on
line diff
--- a/Modules/socketmodule.c	Tue Feb 06 23:37:23 2001 +0000
+++ b/Modules/socketmodule.c	Wed Feb 07 20:41:17 2001 +0000
@@ -2216,14 +2216,11 @@
 static PyObject *SSL_SSLwrite(SSLObject *self, PyObject *args)
 {
 	char *data;
-	size_t len = 0;
+	size_t len;
   
-	if (!PyArg_ParseTuple(args, "s#|i:write", &data, &len))
+	if (!PyArg_ParseTuple(args, "s#:write", &data, &len))
 		return NULL;
   
-	if (!len)
-		len = strlen(data);
-  
 	len = SSL_write(self->ssl, data, len);
 	return PyInt_FromLong((long)len);
 }