Tests for Connection.pending
diff --git a/OpenSSL/ssl/connection.c b/OpenSSL/ssl/connection.c
index 6ee484d..5a4fab0 100755
--- a/OpenSSL/ssl/connection.c
+++ b/OpenSSL/ssl/connection.c
@@ -253,10 +253,10 @@
@return: A Context object\n\
";
static PyObject *
-ssl_Connection_get_context(ssl_ConnectionObj *self, PyObject *args)
-{
- if (!PyArg_ParseTuple(args, ":get_context"))
+ssl_Connection_get_context(ssl_ConnectionObj *self, PyObject *args) {
+ if (!PyArg_ParseTuple(args, ":get_context")) {
return NULL;
+ }
Py_INCREF(self->context);
return (PyObject *)self->context;
@@ -268,17 +268,17 @@
@return: The number of bytes available in the receive buffer.\n\
";
static PyObject *
-ssl_Connection_pending(ssl_ConnectionObj *self, PyObject *args)
-{
+ssl_Connection_pending(ssl_ConnectionObj *self, PyObject *args) {
int ret;
- if (!PyArg_ParseTuple(args, ":pending"))
+ if (!PyArg_ParseTuple(args, ":pending")) {
return NULL;
+ }
ret = SSL_pending(self->ssl);
return PyInt_FromLong((long)ret);
}
-
+
static char ssl_Connection_bio_write_doc[] = "\n\
When using non-socket connections this function sends\n\
\"dirty\" data that would have traveled in on the network.\n\