From 5792fa90ace06f736661d9924ec9a75c3a0a9771 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 29 Dec 2010 18:56:13 +0100 Subject: s4-python: Only set BASETYPE flag if subclassing is supported. Autobuild-User: Jelmer Vernooij Autobuild-Date: Sat Jan 1 03:39:58 CET 2011 on sn-devel-104 --- source4/web_server/wsgi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source4/web_server/wsgi.c') diff --git a/source4/web_server/wsgi.c b/source4/web_server/wsgi.c index 73e668ebfd..1c105d0337 100644 --- a/source4/web_server/wsgi.c +++ b/source4/web_server/wsgi.c @@ -111,7 +111,7 @@ PyTypeObject web_request_Type = { .tp_name = "wsgi.Request", .tp_methods = web_request_methods, .tp_basicsize = sizeof(web_request_Object), - .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, + .tp_flags = Py_TPFLAGS_DEFAULT, }; typedef struct { @@ -168,7 +168,7 @@ PyTypeObject error_Stream_Type = { .tp_name = "wsgi.ErrorStream", .tp_basicsize = sizeof(error_Stream_Object), .tp_methods = error_Stream_methods, - .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, + .tp_flags = Py_TPFLAGS_DEFAULT, }; typedef struct { @@ -242,7 +242,7 @@ PyTypeObject input_Stream_Type = { .tp_name = "wsgi.InputStream", .tp_basicsize = sizeof(input_Stream_Object), .tp_methods = input_Stream_methods, - .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, + .tp_flags = Py_TPFLAGS_DEFAULT, }; static PyObject *Py_InputHttpStream(struct websrv_context *web) -- cgit