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,