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:
163b760
)
key.c: Use tuple functions on `KeyError' argument tuple.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 24 Nov 2019 16:19:14 +0000
(16:19 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Wed, 27 Nov 2019 15:10:43 +0000
(15:10 +0000)
key.c
patch
|
blob
|
blame
|
history
diff --git
a/key.c
b/key.c
index 1a57bd8a471b002fb1d6221266aa13129bbbc865..dc1b849b759fec7315621fe6c7a83935877fb5aa 100644
(file)
--- 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 = Py
Sequence_GetSlice(arg, 1, PySequence_Size
(arg))) == 0 ||
+ if ((x = Py
Tuple_GetSlice(arg, 1, PyTuple_GET_SIZE
(arg))) == 0 ||
PyObject_SetAttrString(me, "args", x))
goto end;
Py_DECREF(x); x = 0;