From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 26 May 2018 10:17:08 +0000 (-0700) Subject: bpo-33644: Fix signatures of tp_finalize handlers in testing code. (GH-7111) (GH... X-Git-Tag: v3.6.6rc1~95 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9ba3be4718bdf82e20280980807e054004a9bade;p=thirdparty%2FPython%2Fcpython.git 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 --- diff --git a/Modules/_testmultiphase.c b/Modules/_testmultiphase.c index 8891d8d21dfc..43f8034e8e9b 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 5041ac8284a3..5586989d039c 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 *