X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/catacomb-python/blobdiff_plain/163b7601e66ef3ad8614c79752711919f7586dd3..e2d3325517795887e5b36ef00e32a92b815c1bcb:/key.c diff --git a/key.c b/key.c index 1a57bd8..dc1b849 100644 --- a/key.c +++ b/key.c @@ -48,7 +48,7 @@ static PyObject *kxmeth___init__(PyObject *me, PyObject *arg) PyObject_SetAttrString(me, "errstring", x)) goto end; Py_DECREF(x); x = 0; - if ((x = PySequence_GetSlice(arg, 1, PySequence_Size(arg))) == 0 || + if ((x = PyTuple_GetSlice(arg, 1, PyTuple_GET_SIZE(arg))) == 0 || PyObject_SetAttrString(me, "args", x)) goto end; Py_DECREF(x); x = 0;