s4:dsdb/pydsdb.c and web_server/wsgi.c - remove accidentally introduced Py_RETURN_NONE
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Sun, 12 Dec 2010 17:45:07 +0000 (18:45 +0100)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Sun, 12 Dec 2010 19:06:24 +0000 (20:06 +0100)
This was only thought for Python 2.3 which we generally no longer support (only
pyldb in the LDB library is an exception).

source4/dsdb/pydsdb.c
source4/web_server/wsgi.c

index bdac7902aa9a391c283f1a65d98db00bc9721935..64b7266e723814a009f42817ae6472ad432ecd30 100644 (file)
@@ -34,10 +34,6 @@ typedef inquiry lenfunc;
 typedef intargfunc ssizeargfunc;
 #endif
 
-#ifndef Py_RETURN_NONE
-#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
-#endif
-
 /* FIXME: These should be in a header file somewhere, once we finish moving
  * away from SWIG .. */
 #define PyErr_LDB_OR_RAISE(py_ldb, ldb) \
index 03e12857c0396b2eee29242bc2ecc392063ce8b1..73e668ebfd7c6ce4eef945a33906080a45b367f0 100644 (file)
@@ -34,10 +34,6 @@ typedef inquiry lenfunc;
 typedef intargfunc ssizeargfunc;
 #endif
 
-#ifndef Py_RETURN_NONE
-#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
-#endif
-
 typedef struct {
        PyObject_HEAD
        struct websrv_context *web;