diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-05-31 05:31:21 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-31 05:31:21 (GMT) |
| commit | a4dd46a47fe1d4fe1f1738c2f5b3712de41056b9 (patch) | |
| tree | a8e59100578097dd04805ab1b83ac6b68f1215cb /Python/Python-ast.c | |
| parent | e76b8c446493d0f028d9e4d9876ad1348fefde1c (diff) | |
| download | cpython-a4dd46a47fe1d4fe1f1738c2f5b3712de41056b9.zip cpython-a4dd46a47fe1d4fe1f1738c2f5b3712de41056b9.tar.gz cpython-a4dd46a47fe1d4fe1f1738c2f5b3712de41056b9.tar.bz2 | |
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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/Python-ast.c b/Python/Python-ast.c index 38b9292..6a2f28e 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 |
