]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:Remove "Py_RETURN_NONE" compatibility code
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Thu, 4 Feb 2010 10:17:40 +0000 (11:17 +0100)
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Tue, 9 Feb 2010 16:53:09 +0000 (17:53 +0100)
This was needed only by Python 2.3 which we no longer support.

source4/auth/credentials/pycredentials.c
source4/auth/gensec/pygensec.c
source4/lib/com/pycom.c
source4/lib/messaging/pymessaging.c
source4/lib/registry/pyregistry.c
source4/librpc/rpc/pyrpc.c
source4/ntvfs/posix/python/pyxattr_native.c
source4/ntvfs/posix/python/pyxattr_tdb.c
source4/param/pyparam.c
source4/scripting/python/pyglue.c
source4/web_server/wsgi.c

index 59a200b09e1365ebbcaad71a27c19b86baa194f5..3c06ae93028da52ed80138619c682415b37796a7 100644 (file)
 #include "libcli/util/pyerrors.h"
 #include "param/pyparam.h"
 
-#ifndef Py_RETURN_NONE
-#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
-#endif
-
 static PyObject *PyString_FromStringOrNULL(const char *str)
 {
        if (str == NULL)
index 87c38053a7432311de6dccde27149ba366e47e4f..1c2bd20dde9cc0e2249d6f30c419f77e9d637cde 100644 (file)
 #include "pytalloc.h"
 #include <tevent.h>
 
-#ifndef Py_RETURN_NONE
-#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
-#endif
-
 static PyObject *py_get_name_by_authtype(PyObject *self, PyObject *args)
 {
        int type;
index 86e794e173280e5816fa3dd0de1d33328796c47a..3323ca645e680948ff84b988cbff02c972909412 100644 (file)
 #include "librpc/ndr/libndr.h"
 #include "libcli/util/pyerrors.h"
 
-#ifndef Py_RETURN_NONE
-#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
-#endif
-
 static struct com_context *py_com_ctx = NULL; /* FIXME: evil global */
 
 static PyObject *py_get_class_object(PyObject *self, PyObject *args)
index 0e6fe88b112da6b701502c1623dd04645f2e10d5..1f3b687e6fab296fe57111177529f2a84c788640 100644 (file)
 #include "param/param.h"
 #include "param/pyparam.h"
 
-#ifndef Py_RETURN_NONE
-#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
-#endif
-
 PyAPI_DATA(PyTypeObject) messaging_Type;
 PyAPI_DATA(PyTypeObject) irpc_ClientConnectionType;
 
index e98ac266117045c6c50d084936996be9c65ae66b..a2042f4d684db1cbb65c12bbcd7a818b1b9301ba 100644 (file)
 #include "auth/credentials/pycredentials.h"
 #include "param/pyparam.h"
 
-#ifndef Py_RETURN_NONE
-#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
-#endif
-
 PyAPI_DATA(PyTypeObject) PyRegistryKey;
 PyAPI_DATA(PyTypeObject) PyRegistry;
 PyAPI_DATA(PyTypeObject) PyHiveKey;
index a24649daca40c1b53657366dc286e9eae9c959f5..00bc6835f41ae427040c8c468367188cc1217136 100644 (file)
 #include "param/pyparam.h"
 #include "auth/credentials/pycredentials.h"
 
-#ifndef Py_RETURN_NONE
-#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
-#endif
-
 static PyObject *py_dcerpc_run_function(dcerpc_InterfaceObject *iface,
                                        const struct PyNdrRpcMethodDef *md,
                                        PyObject *args, PyObject *kwargs)
index 9b60039a3851d4825cbacfe8129ef0f35c8f2fbc..7dcb5dd37a109165ac89a96e0b051989aa287554 100644 (file)
 #include "librpc/ndr/libndr.h"
 #include "lib/util/wrap_xattr.h"
 
-#ifndef Py_RETURN_NONE
-#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
-#endif
-
 static PyObject *py_is_xattr_supported(PyObject *self)
 {
 #if !defined(HAVE_XATTR_SUPPORT)
index e49cd887d06d1ad430b43c27735945a95ff6db64..195c8db967e2fb8b08dffdf10a7452ae3f76d815 100644 (file)
 #include "ntvfs/posix/vfs_posix.h"
 #include "libcli/util/pyerrors.h"
 
-#ifndef Py_RETURN_NONE
-#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
-#endif
-
 static PyObject *py_is_xattr_supported(PyObject *self)
 {
        return Py_True;
index b4255002d27abac055425ca5b7b76f501ca69060..4b534fbb417c6e380ca8cd62cc99cde457e6a0e6 100644 (file)
@@ -29,10 +29,6 @@ typedef int Py_ssize_t;
 typedef inquiry lenfunc;
 #endif
 
-#ifndef Py_RETURN_NONE
-#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
-#endif
-
 #define PyLoadparmContext_AsLoadparmContext(obj) py_talloc_get_type(obj, struct loadparm_context)
 
 PyAPI_DATA(PyTypeObject) PyLoadparmContext;
index 6ef7033128580a3b2a4722fe7e36d2fc7ee08aa9..5279a0b295b04172c50e6f6a64051be27cc172bd 100644 (file)
 #include "param/pyparam.h"
 #include "auth/credentials/pycredentials.h"
 
-#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 48255bc205ee94cf62939b8bf2d413ed2a55aec2..9b5e38400c661b2010c74bc04e34dfd93620868e 100644 (file)
 #include "../lib/util/data_blob.h"
 #include "lib/tls/tls.h"
 
-#ifndef Py_RETURN_NONE
-#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
-#endif
-
 typedef struct {
        PyObject_HEAD
        struct websrv_context *web;