diff options
| author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2014-01-08 15:42:50 +0100 |
|---|---|---|
| committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2014-01-09 16:27:47 +0100 |
| commit | 0c2fbe5a0c1a12751510840e285b7e45cc02ea22 (patch) | |
| tree | 5f8e515f9d85f9b49b9444ec463775bcf73dd907 /source4/librpc/ndr | |
| parent | d1dacd62bbff93351763ff339cca13ba8180dd89 (diff) | |
| download | samba-0c2fbe5a0c1a12751510840e285b7e45cc02ea22.tar.gz samba-0c2fbe5a0c1a12751510840e285b7e45cc02ea22.tar.xz samba-0c2fbe5a0c1a12751510840e285b7e45cc02ea22.zip | |
samba:python - Py_RETURN_NONE remove compatibility code for releases < 2.4
http://www.python.org/doc//current/c-api/none.html
Reviewed-By: Jelmer Vernooij <jelmer@samba.org>
Autobuild-User(master): Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date(master): Thu Jan 9 16:27:47 CET 2014 on sn-devel-104
Diffstat (limited to 'source4/librpc/ndr')
| -rw-r--r-- | source4/librpc/ndr/py_auth.c | 4 | ||||
| -rw-r--r-- | source4/librpc/ndr/py_misc.c | 4 | ||||
| -rw-r--r-- | source4/librpc/ndr/py_security.c | 4 | ||||
| -rw-r--r-- | source4/librpc/ndr/py_xattr.c | 4 |
4 files changed, 0 insertions, 16 deletions
diff --git a/source4/librpc/ndr/py_auth.c b/source4/librpc/ndr/py_auth.c index 8c9c16fa21..95c9a30321 100644 --- a/source4/librpc/ndr/py_auth.c +++ b/source4/librpc/ndr/py_auth.c @@ -26,10 +26,6 @@ #include "auth/credentials/pycredentials.h" #include "librpc/rpc/pyrpc_util.h" -#ifndef Py_RETURN_NONE -#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None -#endif - static void PyType_AddGetSet(PyTypeObject *type, PyGetSetDef *getset) { PyObject *dict; diff --git a/source4/librpc/ndr/py_misc.c b/source4/librpc/ndr/py_misc.c index 4e6d62ef48..d8edff899a 100644 --- a/source4/librpc/ndr/py_misc.c +++ b/source4/librpc/ndr/py_misc.c @@ -20,10 +20,6 @@ #include <Python.h> #include "librpc/gen_ndr/misc.h" -#ifndef Py_RETURN_NONE -#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None -#endif - static int py_GUID_cmp(PyObject *py_self, PyObject *py_other) { int ret; diff --git a/source4/librpc/ndr/py_security.c b/source4/librpc/ndr/py_security.c index 7f79796ea2..47d8c9a313 100644 --- a/source4/librpc/ndr/py_security.c +++ b/source4/librpc/ndr/py_security.c @@ -20,10 +20,6 @@ #include <Python.h> #include "libcli/security/security.h" -#ifndef Py_RETURN_NONE -#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None -#endif - static void PyType_AddMethods(PyTypeObject *type, PyMethodDef *methods) { PyObject *dict; diff --git a/source4/librpc/ndr/py_xattr.c b/source4/librpc/ndr/py_xattr.c index 5a61c734a5..fcf2e66977 100644 --- a/source4/librpc/ndr/py_xattr.c +++ b/source4/librpc/ndr/py_xattr.c @@ -19,10 +19,6 @@ #include <Python.h> -#ifndef Py_RETURN_NONE -#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None -#endif - static void PyType_AddMethods(PyTypeObject *type, PyMethodDef *methods) { PyObject *dict; |
