From: Mark Wooding Date: Sun, 24 Nov 2019 14:48:27 +0000 (+0000) Subject: key.c: Delete duplicate setting of `errstring'. X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/commitdiff_plain/994b671e8ee14c5690c179bb19d3f1cfc4286186?hp=289517eda9c8916b18430876bd786fff765b5eca key.c: Delete duplicate setting of `errstring'. This code is a total mess, and doesn't work anyway. Let's start cleaning it up. --- diff --git a/key.c b/key.c index 997cf3c..504206d 100644 --- a/key.c +++ b/key.c @@ -48,10 +48,6 @@ static PyObject *kxmeth___init__(PyObject *me, PyObject *arg) PyObject_SetAttrString(me, "errstring", x)) goto fail; Py_DECREF(x); x = 0; - if ((x = PyString_FromString(key_strerror(err))) == 0 || - PyObject_SetAttrString(me, "errstring", x)) - goto fail; - Py_DECREF(x); x = 0; if ((x = PySequence_GetSlice(arg, 1, PySequence_Size(arg))) == 0 || PyObject_SetAttrString(me, "args", x)) goto fail;