summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-05-31 04:34:34 (GMT)
committerGitHub <noreply@github.com>2018-05-31 04:34:34 (GMT)
commita5c42284e69fb309bdd17ee8c1c120d1be383012 (patch)
tree4309186f7e192e3ac29a8992f81de906211feb51 /Parser
parent5d6c7ed5e340b2311a15f34e968d4bef09c71922 (diff)
downloadcpython-a5c42284e69fb309bdd17ee8c1c120d1be383012.zip
cpython-a5c42284e69fb309bdd17ee8c1c120d1be383012.tar.gz
cpython-a5c42284e69fb309bdd17ee8c1c120d1be383012.tar.bz2
bpo-33677: Fix signatures of tp_clear handlers for AST and deque. (GH-7196)
Diffstat (limited to 'Parser')
-rw-r--r--Parser/asdl_c.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py
index 399e79e..44e3d40 100644
--- a/Parser/asdl_c.py
+++ b/Parser/asdl_c.py
@@ -647,10 +647,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