chiark
/
gitweb
/
~mdw
/
catacomb-python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
289517e
)
key.c: Delete duplicate setting of `errstring'.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 24 Nov 2019 14:48:27 +0000
(14:48 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Wed, 27 Nov 2019 15:10:43 +0000
(15:10 +0000)
This code is a total mess, and doesn't work anyway. Let's start
cleaning it up.
key.c
patch
|
blob
|
blame
|
history
diff --git
a/key.c
b/key.c
index 997cf3caaf05b4e3ed0249378ed8ce91f5da4d3c..504206d077d6136ac363a3e922e0e3b6f8a66413 100644
(file)
--- 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;