mirror of
https://github.com/python/cpython.git
synced 2026-05-07 02:51:00 +00:00
bpo-33677: Fix signatures of tp_clear handlers for AST and deque. (GH-7196)
(cherry picked from commit a5c42284e6)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
e76b8c4464
commit
a4dd46a47f
3 changed files with 8 additions and 5 deletions
|
|
@ -528,10 +528,11 @@ ast_traverse(AST_object *self, visitproc visit, void *arg)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void
|
||||
static int
|
||||
ast_clear(AST_object *self)
|
||||
{
|
||||
Py_CLEAR(self->dict);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue