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:
9044246
)
key.c: Only set the error code.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 24 Nov 2019 14:50:01 +0000
(14:50 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Wed, 27 Nov 2019 15:10:43 +0000
(15:10 +0000)
This briefly makes the error string unavailable, but only because the
actual constructor isn't wired up -- and if it were wired up then it
would fail immediately because it's programmed to accept only a single
argument.
key.c
patch
|
blob
|
blame
|
history
diff --git
a/key.c
b/key.c
index dff59ecb48da7dfd5b18be305d18474cb3ea973e..997cf3caaf05b4e3ed0249378ed8ce91f5da4d3c 100644
(file)
--- a/
key.c
+++ b/
key.c
@@
-104,7
+104,7
@@
static PyMethodDef keyexc_pymethods[] = {
static void keyexc_raise(int err)
{
- PyObject *arg = Py_BuildValue("(i
s)", err, key_strerror(err)
);
+ PyObject *arg = Py_BuildValue("(i
)", err
);
if (arg) PyErr_SetObject(keyexc, arg);
Py_XDECREF(arg);
}