summaryrefslogtreecommitdiff
path: root/auth
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2018-12-11 15:32:11 +0000
committerDouglas Bagnall <dbagnall@samba.org>2019-01-13 00:40:26 +0100
commitefc4570d6ff1f1b0f12869d65ccf4aed92773ee2 (patch)
tree57dd9f0315e21a6c841259948490ba1cb16b1d82 /auth
parent253af8b85450c2830a442084e98734ca338c1b2f (diff)
downloadsamba-efc4570d6ff1f1b0f12869d65ccf4aed92773ee2.tar.gz
auth/credentials: 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>
Diffstat (limited to 'auth')
-rw-r--r--auth/credentials/pycredentials.c2
1 files changed, 1 insertions, 1 deletions
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;