mirror of
https://github.com/python/cpython.git
synced 2026-04-26 13:50:54 +00:00
bpo-33677: Fix signatures of tp_clear handlers for AST and deque. (GH-7196) (GH-7269)
(cherry picked from commit a5c42284e6)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
c2870b699e
commit
0fe3be0392
3 changed files with 8 additions and 5 deletions
|
|
@ -525,10 +525,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