diff options
author | Andrew Bartlett <abartlet@samba.org> | 2020-03-15 10:04:52 +1300 |
---|---|---|
committer | Noel Power <npower@samba.org> | 2020-03-23 19:12:43 +0000 |
commit | 3aea3b15381857bf3e9a69477c487c91f1b6cbbd (patch) | |
tree | dc0c13221ab978bf7d1d1e780003689222f931c2 /lib/tdb | |
parent | 9bdc5a674288a25d4aafda5cb105d57e5c5636f0 (diff) | |
download | samba-3aea3b15381857bf3e9a69477c487c91f1b6cbbd.tar.gz |
py3: Remove #define PyInt_Check PyLong_Check
This will allow us to remove some unused code in the PIDL-generated
python bindings.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
Diffstat (limited to 'lib/tdb')
-rw-r--r-- | lib/tdb/pytdb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/tdb/pytdb.c b/lib/tdb/pytdb.c index 74e80f95ec5..7211d466a71 100644 --- a/lib/tdb/pytdb.c +++ b/lib/tdb/pytdb.c @@ -33,7 +33,6 @@ #if PY_MAJOR_VERSION >= 3 #define PyInt_FromLong PyLong_FromLong -#define PyInt_Check PyLong_Check #define PyInt_AsLong PyLong_AsLong #define Py_TPFLAGS_HAVE_ITER 0 #endif @@ -555,7 +554,7 @@ static PyObject *obj_get_hash_size(PyTdbObject *self, void *closure) static int obj_set_max_dead(PyTdbObject *self, PyObject *max_dead, void *closure) { PyErr_TDB_RAISE_RETURN_MINUS_1_IF_CLOSED(self); - if (!PyInt_Check(max_dead)) + if (!PyLong_Check(max_dead)) return -1; tdb_set_max_dead(self->ctx, PyInt_AsLong(max_dead)); return 0; |