From a4dd46a47fe1d4fe1f1738c2f5b3712de41056b9 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Wed, 30 May 2018 22:31:21 -0700 Subject: bpo-33677: Fix signatures of tp_clear handlers for AST and deque. (GH-7196) (cherry picked from commit a5c42284e69fb309bdd17ee8c1c120d1be383012) Co-authored-by: Serhiy Storchaka --- Python/Python-ast.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Python/Python-ast.c') diff --git a/Python/Python-ast.c b/Python/Python-ast.c index 38b9292577..6a2f28e0e7 100644 --- a/Python/Python-ast.c +++ b/Python/Python-ast.c @@ -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 -- cgit v1.2.1