Fixed connection.poll() docstring

Fixes #312
This commit is contained in:
Daniele Varrazzo 2015-05-03 09:30:04 +01:00
parent 44ba7df67f
commit a24597d0e0

View File

@ -840,6 +840,10 @@ psyco_conn_get_exception(PyObject *self, void *closure)
return exception; return exception;
} }
#define psyco_conn_poll_doc \
"poll() -> int -- Advance the connection or query process without blocking."
static PyObject * static PyObject *
psyco_conn_poll(connectionObject *self) psyco_conn_poll(connectionObject *self)
{ {
@ -980,7 +984,7 @@ static struct PyMethodDef connectionObject_methods[] = {
{"reset", (PyCFunction)psyco_conn_reset, {"reset", (PyCFunction)psyco_conn_reset,
METH_NOARGS, psyco_conn_reset_doc}, METH_NOARGS, psyco_conn_reset_doc},
{"poll", (PyCFunction)psyco_conn_poll, {"poll", (PyCFunction)psyco_conn_poll,
METH_NOARGS, psyco_conn_lobject_doc}, METH_NOARGS, psyco_conn_poll_doc},
{"fileno", (PyCFunction)psyco_conn_fileno, {"fileno", (PyCFunction)psyco_conn_fileno,
METH_NOARGS, psyco_conn_fileno_doc}, METH_NOARGS, psyco_conn_fileno_doc},
{"isexecuting", (PyCFunction)psyco_conn_isexecuting, {"isexecuting", (PyCFunction)psyco_conn_isexecuting,