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:
Miss Islington (bot) 2018-05-30 23:10:28 -07:00 committed by Serhiy Storchaka
parent c2870b699e
commit 0fe3be0392
3 changed files with 8 additions and 5 deletions

View file

@ -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