From 8b8f1d60edbae4ebe865fe7d1cdbcebaf28fa74d Mon Sep 17 00:00:00 2001 From: "roberto@sirius" Date: Fri, 22 Jan 2010 13:24:18 +0100 Subject: [PATCH] uwsgi.unbit --- uwsgi.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/uwsgi.c b/uwsgi.c index d00aea7d..25f745e4 100644 --- a/uwsgi.c +++ b/uwsgi.c @@ -2891,6 +2891,15 @@ void init_uwsgi_embedded_module() { exit(1); } +#ifdef UNBIT + if (PyDict_SetItemString(uwsgi.embedded_dict, "unbit", Py_True)) { +#else + if (PyDict_SetItemString(uwsgi.embedded_dict, "unbit", Py_None)) { +#endif + PyErr_Print(); + exit(1); + } + if (PyDict_SetItemString(uwsgi.embedded_dict, "buffer_size", PyInt_FromLong(uwsgi.buffer_size))) { PyErr_Print(); exit(1);