auth/credentials: use 'et' as format for ParseTuple with python2
authorNoel Power <noel.power@suse.com>
Tue, 11 Dec 2018 15:32:11 +0000 (15:32 +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>
auth/credentials/pycredentials.c

index fa8ac2bcb9f7604ce691072a5e857efce3930287..7f9bc38af8e178a2fa0ec57814ebb05a485fbe46 100644 (file)
@@ -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;
        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;
                return NULL;
        }
        obt = _obt;