Skip to content

Commit 95cedb9

Browse files
committed
Also stop using PyGenObject type
1 parent 6b820d9 commit 95cedb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/_testcapimodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1583,7 +1583,7 @@ getitem_with_error(PyObject *self, PyObject *args)
15831583
static PyObject *
15841584
raise_SIGINT_then_send_None(PyObject *self, PyObject *args)
15851585
{
1586-
PyGenObject *gen;
1586+
PyObject *gen;
15871587

15881588
if (!PyArg_ParseTuple(args, "O", &gen))
15891589
return NULL;
@@ -1599,7 +1599,7 @@ raise_SIGINT_then_send_None(PyObject *self, PyObject *args)
15991599
because we check for signals before every bytecode operation.
16001600
*/
16011601
raise(SIGINT);
1602-
return PyObject_CallMethod((PyObject *)gen, "send", "O", Py_None);
1602+
return PyObject_CallMethod(gen, "send", "O", Py_None);
16031603
}
16041604

16051605

0 commit comments

Comments
 (0)