diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-05-26 07:51:58 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-26 07:51:58 (GMT) |
commit | 19de8b3dd742fb53681478ad4fff57ed7c37a953 (patch) | |
tree | c0168b421b65732a078d0000b4808948006b5bf8 | |
parent | 4f0bc7f7ab6ec23594b0efe11d082f78ae42abed (diff) | |
download | cpython-19de8b3dd742fb53681478ad4fff57ed7c37a953.zip cpython-19de8b3dd742fb53681478ad4fff57ed7c37a953.tar.gz cpython-19de8b3dd742fb53681478ad4fff57ed7c37a953.tar.bz2 |
bpo-33644: Fix signatures of tp_finalize handlers in testing code. (GH-7111)
-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 8090a48..68404f2 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 * |