summaryrefslogtreecommitdiffstats
path: root/Python/Python-ast.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-05-31 06:10:28 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2018-05-31 06:10:28 (GMT)
commit0fe3be03926c3468ed4c10980d1a030c8ef4e37e (patch)
treecc2182081f4995eaacea6fccdd337b878bd87663 /Python/Python-ast.c
parentc2870b699eb899f358b843c2d706ce8ca89b2bf4 (diff)
downloadcpython-0fe3be03926c3468ed4c10980d1a030c8ef4e37e.zip
cpython-0fe3be03926c3468ed4c10980d1a030c8ef4e37e.tar.gz
cpython-0fe3be03926c3468ed4c10980d1a030c8ef4e37e.tar.bz2
bpo-33677: Fix signatures of tp_clear handlers for AST and deque. (GH-7196) (GH-7269)
(cherry picked from commit a5c42284e69fb309bdd17ee8c1c120d1be383012) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Python/Python-ast.c')
-rw-r--r--Python/Python-ast.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/Python-ast.c b/Python/Python-ast.c
index 212211c..8e383ad 100644
--- a/Python/Python-ast.c
+++ b/Python/Python-ast.c
@@ -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