bpo-33677: Fix signatures of tp_clear handlers for AST and deque. (GH-7196)

This commit is contained in:
Serhiy Storchaka 2018-05-31 07:34:34 +03:00 committed by GitHub
parent 5d6c7ed5e3
commit a5c42284e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 5 deletions

View file

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