mirror of
https://github.com/python/cpython.git
synced 2024-11-24 00:38:00 +01:00
bpo-33644: Fix signatures of tp_finalize handlers in testing code. (GH-7111)
This commit is contained in:
parent
4f0bc7f7ab
commit
19de8b3dd7
@ -23,11 +23,10 @@ Example_traverse(ExampleObject *self, visitproc visit, void *arg)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
static void
|
||||
Example_finalize(ExampleObject *self)
|
||||
{
|
||||
Py_CLEAR(self->x_attr);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
|
@ -47,11 +47,10 @@ Xxo_traverse(XxoObject *self, visitproc visit, void *arg)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
static void
|
||||
Xxo_finalize(XxoObject *self)
|
||||
{
|
||||
Py_CLEAR(self->x_attr);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
|
Loading…
Reference in New Issue
Block a user