[Python-checkins] CVS: python/dist/src/Modules socketmodule.c,1.169,1.170
Jeremy Hylton
jhylton@users.sourceforge.net
Tue, 09 Oct 2001 20:33:26 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv16299
Modified Files:
socketmodule.c
Log Message:
A bit of reformatting to match the standard style
Index: socketmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.169
retrieving revision 1.170
diff -C2 -d -r1.169 -r1.170
*** socketmodule.c 2001/10/10 03:19:39 1.169
--- socketmodule.c 2001/10/10 03:33:24 1.170
***************
*** 2580,2588 ****
if (!PyArg_ParseTuple(args, "O!zz:ssl",
&PySocketSock_Type, (PyObject*)&Sock,
! &key_file, &cert_file) )
return NULL;
rv = newSSLObject(Sock, key_file, cert_file);
! if ( rv == NULL )
return NULL;
return (PyObject *)rv;
--- 2580,2588 ----
if (!PyArg_ParseTuple(args, "O!zz:ssl",
&PySocketSock_Type, (PyObject*)&Sock,
! &key_file, &cert_file))
return NULL;
rv = newSSLObject(Sock, key_file, cert_file);
! if (rv == NULL)
return NULL;
return (PyObject *)rv;
***************
*** 2608,2616 ****
static PyMethodDef SSLMethods[] = {
! { "write", (PyCFunction)SSL_SSLwrite, 1 },
! { "read", (PyCFunction)SSL_SSLread, 1 },
! { "server", (PyCFunction)SSL_server, 1 },
! { "issuer", (PyCFunction)SSL_issuer, 1 },
! { NULL, NULL}
};
--- 2608,2616 ----
static PyMethodDef SSLMethods[] = {
! {"write", (PyCFunction)SSL_SSLwrite, 1},
! {"read", (PyCFunction)SSL_SSLread, 1},
! {"server", (PyCFunction)SSL_server, 1},
! {"issuer", (PyCFunction)SSL_issuer, 1},
! {NULL, NULL}
};