pyldb: make ldb.connect() url mandatory
[nivanova/samba-autobuild/.git] / lib / ldb / pyldb.c
index b2cac8a3497ac6082f9a3cf739a32c2909026f16..8e48fa5d56dc36e319a59825806145a8bba1549e 100644 (file)
@@ -1213,7 +1213,7 @@ static PyObject *py_ldb_connect(PyLdbObject *self, PyObject *args, PyObject *kwa
        const char * const kwnames[] = { "url", "flags", "options", NULL };
        struct ldb_context *ldb_ctx;
 
-       if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|zIO",
+       if (!PyArg_ParseTupleAndKeywords(args, kwargs, "z|IO",
                                         discard_const_p(char *, kwnames),
                                         &url, &flags, &py_options))
                return NULL;