From 4f6270976b5efa5be0fdcf044196c1dccd13da5f Mon Sep 17 00:00:00 2001 From: "roberto@debian32" Date: Sun, 22 May 2011 14:07:01 +0200 Subject: [PATCH] fixed python3.x spooler --- plugins/python/uwsgi_pymodule.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/python/uwsgi_pymodule.c b/plugins/python/uwsgi_pymodule.c index 5068e78e..28edd7ea 100644 --- a/plugins/python/uwsgi_pymodule.c +++ b/plugins/python/uwsgi_pymodule.c @@ -2219,8 +2219,13 @@ PyObject *py_uwsgi_grunt(PyObject * self, PyObject * args) { #ifdef UWSGI_SPOOLER static PyMethodDef uwsgi_spooler_methods[] = { +#ifdef PYTHREE + {"send_to_spooler", (PyCFunction) py_uwsgi_send_spool, METH_VARARGS | METH_KEYWORDS, ""}, + {"spool", (PyCFunction) py_uwsgi_send_spool, METH_VARARGS | METH_KEYWORDS, ""}, +#else {"send_to_spooler", (PyCFunction) py_uwsgi_send_spool, METH_KEYWORDS, ""}, {"spool", (PyCFunction) py_uwsgi_send_spool, METH_KEYWORDS, ""}, +#endif {"set_spooler_frequency", py_uwsgi_spooler_freq, METH_VARARGS, ""}, {"spooler_jobs", py_uwsgi_spooler_jobs, METH_VARARGS, ""}, {NULL, NULL},