s4/libnet: use 'et' as format for ParseTuple with python2
authorNoel Power <noel.power@suse.com>
Tue, 11 Dec 2018 15:58:44 +0000 (15:58 +0000)
committerDouglas Bagnall <dbagnall@samba.org>
Sat, 12 Jan 2019 23:40:26 +0000 (00:40 +0100)
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source4/libnet/py_net.c

index 65060d5..b50f7ab 100644 (file)
@@ -161,7 +161,8 @@ static PyObject *py_net_change_password(py_net_Object *self, PyObject *args, PyO
        const char *newpass = NULL;
        const char *oldpass = NULL;
        ZERO_STRUCT(r);
-       if (!PyArg_ParseTupleAndKeywords(args, kwargs, "es|esss:change_password",
+       if (!PyArg_ParseTupleAndKeywords(args, kwargs, PYARG_STR_UNI
+                                        "|"PYARG_STR_UNI"ss:change_password",
                                         discard_const_p(char *, kwnames),
                                         "utf8",
                                         &newpass,