diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-05-26 10:17:08 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2018-05-26 10:17:08 (GMT) |
commit | 9ba3be4718bdf82e20280980807e054004a9bade (patch) | |
tree | 18b8d6c1cf8707ffd05491d6cb2e9fa90374dfc4 | |
parent | ecd0bb2693bfead04df543827cefc305bddd1ea7 (diff) | |
download | cpython-9ba3be4718bdf82e20280980807e054004a9bade.zip cpython-9ba3be4718bdf82e20280980807e054004a9bade.tar.gz cpython-9ba3be4718bdf82e20280980807e054004a9bade.tar.bz2 |
bpo-33644: Fix signatures of tp_finalize handlers in testing code. (GH-7111) (GH-7125)
(cherry picked from commit 19de8b3dd742fb53681478ad4fff57ed7c37a953)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
-rw-r--r-- | Modules/_testmultiphase.c | 3 | ||||
-rw-r--r-- | Modules/xxlimited.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/Modules/_testmultiphase.c b/Modules/_testmultiphase.c index 8891d8d..43f8034 100644 --- a/Modules/_testmultiphase.c +++ b/Modules/_testmultiphase.c @@ -23,11 +23,10 @@ Example_traverse(ExampleObject *self, visitproc visit, void *arg) return 0; } -static int +static void Example_finalize(ExampleObject *self) { Py_CLEAR(self->x_attr); - return 0; } static PyObject * diff --git a/Modules/xxlimited.c b/Modules/xxlimited.c index 5041ac8..5586989 100644 --- a/Modules/xxlimited.c +++ b/Modules/xxlimited.c @@ -47,11 +47,10 @@ Xxo_traverse(XxoObject *self, visitproc visit, void *arg) return 0; } -static int +static void Xxo_finalize(XxoObject *self) { Py_CLEAR(self->x_attr); - return 0; } static PyObject * |