auth/credentials: use 'et' as format for ParseTuple with python2
[kai/samba-autobuild/.git] / 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;
-       if (!PyArg_ParseTuple(args, "es|i", "utf8", &newval, &_obt)) {
+       if (!PyArg_ParseTuple(args, PYARG_STR_UNI"|i", "utf8", &newval, &_obt)) {
                return NULL;
        }
        obt = _obt;