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 | |
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
-rw-r--r-- | ctdb/lib/tdb/pytdb.c | 4 | ||||
-rw-r--r-- | lib/ldb/pyldb.c | 4 | ||||
-rw-r--r-- | lib/ldb/pyldb_util.c | 5 | ||||
-rw-r--r-- | lib/ntdb/pyntdb.c | 4 | ||||
-rw-r--r-- | lib/socket_wrapper/py_socket_wrapper.c | 4 | ||||
-rw-r--r-- | lib/tdb/pytdb.c | 4 | ||||
-rw-r--r-- | libcli/nbt/pynbt.c | 4 | ||||
-rw-r--r-- | python/pyglue.c | 4 | ||||
-rw-r--r-- | source3/passdb/py_passdb.c | 4 | ||||
-rw-r--r-- | source4/auth/pyauth.c | 4 | ||||
-rw-r--r-- | source4/libcli/pysmb.c | 4 | ||||
-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 |
15 files changed, 0 insertions, 61 deletions
diff --git a/ctdb/lib/tdb/pytdb.c b/ctdb/lib/tdb/pytdb.c index ae0e6f808d7..98a624687eb 100644 --- a/ctdb/lib/tdb/pytdb.c +++ b/ctdb/lib/tdb/pytdb.c @@ -28,10 +28,6 @@ #include "replace.h" #include "system/filesys.h" -#ifndef Py_RETURN_NONE -#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None -#endif - /* Include tdb headers */ #include <tdb.h> diff --git a/lib/ldb/pyldb.c b/lib/ldb/pyldb.c index 45831329009..4360b31776e 100644 --- a/lib/ldb/pyldb.c +++ b/lib/ldb/pyldb.c @@ -64,10 +64,6 @@ typedef inquiry lenfunc; typedef intargfunc ssizeargfunc; #endif -#ifndef Py_RETURN_NONE -#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None -#endif - #define SIGN(a) (((a) == 0)?0:((a) < 0?-1:1)) diff --git a/lib/ldb/pyldb_util.c b/lib/ldb/pyldb_util.c index e2442e2194b..4be9126405d 100644 --- a/lib/ldb/pyldb_util.c +++ b/lib/ldb/pyldb_util.c @@ -36,11 +36,6 @@ typedef inquiry lenfunc; typedef intargfunc ssizeargfunc; #endif -#ifndef Py_RETURN_NONE -#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None -#endif - - /** * Find out PyTypeObject in ldb module for a given typename */ diff --git a/lib/ntdb/pyntdb.c b/lib/ntdb/pyntdb.c index cbe7ae81fa0..b2a1f0cbc1b 100644 --- a/lib/ntdb/pyntdb.c +++ b/lib/ntdb/pyntdb.c @@ -29,10 +29,6 @@ #include "replace.h" #include "system/filesys.h" -#ifndef Py_RETURN_NONE -#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None -#endif - /* Include ntdb headers */ #include <ntdb.h> diff --git a/lib/socket_wrapper/py_socket_wrapper.c b/lib/socket_wrapper/py_socket_wrapper.c index f5742d3dd10..411be59d5b1 100644 --- a/lib/socket_wrapper/py_socket_wrapper.c +++ b/lib/socket_wrapper/py_socket_wrapper.c @@ -52,10 +52,6 @@ typedef inquiry lenfunc; typedef intargfunc ssizeargfunc; #endif -#ifndef Py_RETURN_NONE -#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None -#endif - #ifndef Py_TYPE /* Py_TYPE is only available on Python > 2.6 */ #define Py_TYPE(ob) (((PyObject*)(ob))->ob_type) #endif diff --git a/lib/tdb/pytdb.c b/lib/tdb/pytdb.c index cf77a252746..bf0fed6e7b1 100644 --- a/lib/tdb/pytdb.c +++ b/lib/tdb/pytdb.c @@ -28,10 +28,6 @@ #include "replace.h" #include "system/filesys.h" -#ifndef Py_RETURN_NONE -#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None -#endif - /* Include tdb headers */ #include <tdb.h> diff --git a/libcli/nbt/pynbt.c b/libcli/nbt/pynbt.c index 8074fb6efdb..7162880c32c 100644 --- a/libcli/nbt/pynbt.c +++ b/libcli/nbt/pynbt.c @@ -26,10 +26,6 @@ void initnetbios(void); -#ifndef Py_RETURN_NONE -#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None -#endif - extern PyTypeObject nbt_node_Type; typedef struct { diff --git a/python/pyglue.c b/python/pyglue.c index 02fb005071a..3fc6e38691f 100644 --- a/python/pyglue.c +++ b/python/pyglue.c @@ -25,10 +25,6 @@ void init_glue(void); -#ifndef Py_RETURN_NONE -#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None -#endif - static PyObject *py_generate_random_str(PyObject *self, PyObject *args) { int len; diff --git a/source3/passdb/py_passdb.c b/source3/passdb/py_passdb.c index 3fd14cdc411..87dbb5dd435 100644 --- a/source3/passdb/py_passdb.c +++ b/source3/passdb/py_passdb.c @@ -33,10 +33,6 @@ typedef inquiry lenfunc; typedef intargfunc ssizeargfunc; #endif -#ifndef Py_RETURN_NONE -#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None -#endif - #ifndef Py_TYPE /* Py_TYPE is only available on Python > 2.6 */ #define Py_TYPE(ob) (((PyObject*)(ob))->ob_type) #endif diff --git a/source4/auth/pyauth.c b/source4/auth/pyauth.c index 437e671bba2..d79d41782d9 100644 --- a/source4/auth/pyauth.c +++ b/source4/auth/pyauth.c @@ -43,10 +43,6 @@ typedef inquiry lenfunc; typedef intargfunc ssizeargfunc; #endif -#ifndef Py_RETURN_NONE -#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None -#endif - static PyObject *PyAuthSession_FromSession(struct auth_session_info *session) { return py_return_ndr_struct("samba.dcerpc.auth", "session_info", session, session); diff --git a/source4/libcli/pysmb.c b/source4/libcli/pysmb.c index fb981c7f189..456b01d87d2 100644 --- a/source4/libcli/pysmb.c +++ b/source4/libcli/pysmb.c @@ -38,10 +38,6 @@ #include "libcli/security/security_descriptor.h" #include "librpc/rpc/pyrpc_util.h" -#ifndef Py_RETURN_NONE -#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None -#endif - staticforward PyTypeObject PySMB; void initsmb(void); diff --git a/source4/librpc/ndr/py_auth.c b/source4/librpc/ndr/py_auth.c index 8c9c16fa212..95c9a30321f 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 4e6d62ef482..d8edff899ac 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 7f79796ea26..47d8c9a3133 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 5a61c734a52..fcf2e66977e 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; |