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:
parent
a799377029
commit
b6c8ef5fb7
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user