From e55ac57e071ca2a0da104cbcd1a532ad556ff365 Mon Sep 17 00:00:00 2001 From: Unbit Date: Tue, 1 Sep 2015 22:25:21 +0200 Subject: [PATCH] fixed #1026 --- plugins/python/uwsgi_pymodule.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/python/uwsgi_pymodule.c b/plugins/python/uwsgi_pymodule.c index 86433c85..7a60e233 100644 --- a/plugins/python/uwsgi_pymodule.c +++ b/plugins/python/uwsgi_pymodule.c @@ -11,8 +11,7 @@ extern struct uwsgi_plugin python_plugin; PyTypeObject uwsgi_RequestContextType = { - PyObject_HEAD_INIT(NULL) - 0, + PyVarObject_HEAD_INIT(NULL, 0) "uwsgi.RequestContext", sizeof(uwsgi_RequestContext), 0,