From a24597d0e06f52c800763b758b7b437f6a1f2b82 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Sun, 3 May 2015 09:30:04 +0100 Subject: [PATCH] Fixed connection.poll() docstring Fixes #312 --- psycopg/connection_type.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/psycopg/connection_type.c b/psycopg/connection_type.c index 1f54ccfe..43abe8a3 100644 --- a/psycopg/connection_type.c +++ b/psycopg/connection_type.c @@ -840,6 +840,10 @@ psyco_conn_get_exception(PyObject *self, void *closure) return exception; } + +#define psyco_conn_poll_doc \ +"poll() -> int -- Advance the connection or query process without blocking." + static PyObject * psyco_conn_poll(connectionObject *self) { @@ -980,7 +984,7 @@ static struct PyMethodDef connectionObject_methods[] = { {"reset", (PyCFunction)psyco_conn_reset, METH_NOARGS, psyco_conn_reset_doc}, {"poll", (PyCFunction)psyco_conn_poll, - METH_NOARGS, psyco_conn_lobject_doc}, + METH_NOARGS, psyco_conn_poll_doc}, {"fileno", (PyCFunction)psyco_conn_fileno, METH_NOARGS, psyco_conn_fileno_doc}, {"isexecuting", (PyCFunction)psyco_conn_isexecuting,