From fdf4bd3196030fdc9d5103e7ae961171a4f65bc4 Mon Sep 17 00:00:00 2001 From: krasimir Date: Fri, 20 May 2016 15:20:02 +0000 Subject: change the API for literals in Java and Python. The input sentence is no longer a parameter to the callbacks. --- src/runtime/python/pypgf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/runtime/python/pypgf.c') diff --git a/src/runtime/python/pypgf.c b/src/runtime/python/pypgf.c index 9f88a771b..c3eef6afc 100644 --- a/src/runtime/python/pypgf.c +++ b/src/runtime/python/pypgf.c @@ -1280,11 +1280,11 @@ pypgf_literal_callback_match(PgfLiteralCallback* self, PgfConcr* concr, gu_container(self, PyPgfLiteralCallback, callback); PyObject* result = - PyObject_CallFunction(callback->pycallback, "isi", - lin_idx, sentence, *poffset); + PyObject_CallFunction(callback->pycallback, "ii", + lin_idx, *poffset); if (result == NULL) return NULL; - + if (result == Py_None) { Py_DECREF(result); return NULL; -- cgit v1.2.3