From 163b7601e66ef3ad8614c79752711919f7586dd3 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sun, 24 Nov 2019 14:54:21 +0000 Subject: [PATCH] key.c: Rename sad-path label to `end'. Now we can use our exception-raising macros. --- key.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/key.c b/key.c index 504206d..1a57bd8 100644 --- a/key.c +++ b/key.c @@ -42,19 +42,19 @@ static PyObject *kxmeth___init__(PyObject *me, PyObject *arg) if (!PyArg_ParseTuple(arg, "Oi:__init__", &me, &err) || (x = PyInt_FromLong(err)) == 0 || PyObject_SetAttrString(me, "err", x)) - goto fail; + goto end; Py_DECREF(x); x = 0; if ((x = PyString_FromString(key_strerror(err))) == 0 || PyObject_SetAttrString(me, "errstring", x)) - goto fail; + goto end; Py_DECREF(x); x = 0; if ((x = PySequence_GetSlice(arg, 1, PySequence_Size(arg))) == 0 || PyObject_SetAttrString(me, "args", x)) - goto fail; + goto end; Py_DECREF(x); x = 0; RETURN_NONE; -fail: +end: Py_XDECREF(x); return (0); } -- 2.11.0