Skip to content

Commit

Permalink
Remove the optional integer argument to SSL_write; now it will always…
Browse files Browse the repository at this point in the history
… send

    the entire string passed to it
  • Loading branch information
akuchling committed Feb 7, 2001
1 parent 3c04494 commit b38175e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Modules/socketmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -2216,14 +2216,11 @@ staticforward PyTypeObject SSL_Type = {
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);
}
Expand Down

0 comments on commit b38175e

Please sign in to comment.