From: Mark Wooding Date: Sun, 24 Nov 2019 16:19:14 +0000 (+0000) Subject: key.c: Use tuple functions on `KeyError' argument tuple. X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/commitdiff_plain/e2d3325517795887e5b36ef00e32a92b815c1bcb?hp=163b7601e66ef3ad8614c79752711919f7586dd3 key.c: Use tuple functions on `KeyError' argument tuple. --- 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;