summaryrefslogtreecommitdiff
path: root/Python/Python-ast.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-05-30 22:31:21 -0700
committerGitHub <noreply@github.com>2018-05-30 22:31:21 -0700
commita4dd46a47fe1d4fe1f1738c2f5b3712de41056b9 (patch)
treea8e59100578097dd04805ab1b83ac6b68f1215cb /Python/Python-ast.c
parente76b8c446493d0f028d9e4d9876ad1348fefde1c (diff)
downloadcpython-git-a4dd46a47fe1d4fe1f1738c2f5b3712de41056b9.tar.gz
bpo-33677: Fix signatures of tp_clear handlers for AST and deque. (GH-7196)
(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 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