~mdw
/
catacomb-python
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
key.c: Use tuple functions on `KeyError' argument tuple.
[catacomb-python]
/
key.c
diff --git
a/key.c
b/key.c
index
1a57bd8
..
dc1b849
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;
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;
PyObject_SetAttrString(me, "args", x))
goto end;
Py_DECREF(x); x = 0;