From 4c79fbfbe57d56e9795e85537f00dd023eec78d4 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Tue, 27 Oct 2009 19:11:15 +0100 Subject: ldb:python bindings - make the intention by Jelmer ("int" vs. "enum") more clear --- source4/lib/ldb/pyldb.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source4/lib/ldb/pyldb.c') diff --git a/source4/lib/ldb/pyldb.c b/source4/lib/ldb/pyldb.c index d4a369cc9f..901d121ff6 100644 --- a/source4/lib/ldb/pyldb.c +++ b/source4/lib/ldb/pyldb.c @@ -1020,6 +1020,7 @@ static PyObject *py_ldb_search(PyLdbObject *self, PyObject *args, PyObject *kwar struct ldb_dn *base; PyObject *py_ret; + /* type "int" rather than "enum" for "scope" is intentional */ if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|OizOO", discard_const_p(char *, kwnames), &py_base, &scope, &expr, &py_attrs, &py_controls)) @@ -1354,6 +1355,7 @@ static PyObject *py_ldb_module_search(PyLdbModuleObject *self, PyObject *args, P struct ldb_module *mod; const char * const*attrs; + /* type "int" rather than "enum" for "scope" is intentional */ if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OiOO", discard_const_p(char *, kwnames), &py_base, &scope, &py_tree, &py_attrs)) -- cgit