From: Noel Power Date: Tue, 11 Dec 2018 15:32:11 +0000 (+0000) Subject: auth/credentials: use 'et' as format for ParseTuple with python2 X-Git-Tag: talloc-2.1.15~34 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=efc4570d6ff1f1b0f12869d65ccf4aed92773ee2;p=thirdparty%2Fsamba.git auth/credentials: use 'et' as format for ParseTuple with python2 Signed-off-by: Noel Power Reviewed-by: Douglas Bagnall --- diff --git a/auth/credentials/pycredentials.c b/auth/credentials/pycredentials.c index fa8ac2bcb9f..7f9bc38af8e 100644 --- a/auth/credentials/pycredentials.c +++ b/auth/credentials/pycredentials.c @@ -175,7 +175,7 @@ static PyObject *py_creds_set_password(PyObject *self, PyObject *args) enum credentials_obtained obt = CRED_SPECIFIED; int _obt = obt; PyObject *result = NULL; - if (!PyArg_ParseTuple(args, "es|i", "utf8", &newval, &_obt)) { + if (!PyArg_ParseTuple(args, PYARG_STR_UNI"|i", "utf8", &newval, &_obt)) { return NULL; } obt = _obt;