From: Douglas Bagnall Date: Tue, 7 May 2019 01:31:12 +0000 (+1200) Subject: pyrpc: remove crutch for python <= 2.5 X-Git-Tag: tdb-1.4.1~124 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eb873af9b5cd39e49efbe8d70b8dc2c72ecaa082;p=thirdparty%2Fsamba.git pyrpc: remove crutch for python <= 2.5 Signed-off-by: Douglas Bagnall Reviewed-by: Gary Lockyer --- diff --git a/source4/librpc/rpc/pyrpc.h b/source4/librpc/rpc/pyrpc.h index 05c1adb8307..7101e7345de 100644 --- a/source4/librpc/rpc/pyrpc.h +++ b/source4/librpc/rpc/pyrpc.h @@ -22,10 +22,6 @@ #include "libcli/util/pyerrors.h" -#ifndef Py_TYPE /* Py_TYPE is only available on Python > 2.6 */ -#define Py_TYPE(ob) (((PyObject*)(ob))->ob_type) -#endif - #define PY_CHECK_TYPE(type, var, fail) \ if (var == NULL) { \ PyErr_Format(PyExc_TypeError, \