1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s4/libnet: use 'et' as format for ParseTuple with python2

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
Noel Power 2018-12-11 15:58:44 +00:00 committed by Douglas Bagnall
parent a799377029
commit b6c8ef5fb7

View 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,