python: use simpler call format to prevent warning about PY_SSIZE_T_CLEAN (#44287)

This commit is contained in:
Benjamin Dauvergne 2020-06-19 21:04:59 +02:00
parent 11bc68bbbc
commit 8ae9d3a09b
1 changed files with 1 additions and 1 deletions

View File

@ -733,7 +733,7 @@ lasso_python_log(const char *domain, GLogLevelFlags log_level, const gchar *mess
default:
return;
}
result = PyObject_CallMethod(logger_object, method, "s#s", "%s", 2, message);
result = PyObject_CallMethod(logger_object, method, "ss", "%s", message);
Py_DECREF(logger_object);
if (result) {
Py_DECREF(result);