Skip to content

Commit

Permalink
fix: remove deprecated declarations in python bindings (#1159)
Browse files Browse the repository at this point in the history
Fixes: #1032
  • Loading branch information
jcpunk authored Jun 23, 2024
1 parent 03a3a39 commit 913281d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/_jsonnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ static struct JsonnetJsonValue *cpython_native_callback(
}

// Call python function.
result = PyEval_CallObject(ctx->callback, arglist);
result = PyObject_CallObject(ctx->callback, arglist);
Py_DECREF(arglist);

if (result == NULL) {
Expand Down Expand Up @@ -226,7 +226,7 @@ static int cpython_import_callback(void *ctx_, const char *base, const char *rel

PyEval_RestoreThread(*ctx->py_thread);
arglist = Py_BuildValue("(s, s)", base, rel);
result = PyEval_CallObject(ctx->callback, arglist);
result = PyObject_CallObject(ctx->callback, arglist);
Py_DECREF(arglist);

if (result == NULL) {
Expand Down

0 comments on commit 913281d

Please sign in to comment.