git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0606860
)
pyrpc: remove crutch for python <= 2.5
author
Douglas Bagnall
<douglas.bagnall@catalyst.net.nz>
Tue, 7 May 2019 01:31:12 +0000
(13:31 +1200)
committer
Douglas Bagnall
<dbagnall@samba.org>
Thu, 9 May 2019 22:39:27 +0000
(22:39 +0000)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
source4/librpc/rpc/pyrpc.h
patch
|
blob
|
history
diff --git
a/source4/librpc/rpc/pyrpc.h
b/source4/librpc/rpc/pyrpc.h
index 05c1adb8307498e9fe3848dfd9c66adc89fc90cc..7101e7345deeb61f03e40b9f50d70daa3fd87849 100644
(file)
--- 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, \