From 47a23fc63fa5df2da8dbc542e78e521d4a7f10c9 Mon Sep 17 00:00:00 2001 From: Hai Shi Date: Sun, 7 Jun 2020 20:05:36 +0800 Subject: bpo-40898: Remove redundant if statements in tp_traverse (GH-20692) --- Modules/_functoolsmodule.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Modules/_functoolsmodule.c') diff --git a/Modules/_functoolsmodule.c b/Modules/_functoolsmodule.c index d158d3bae1..f1ee23f294 100644 --- a/Modules/_functoolsmodule.c +++ b/Modules/_functoolsmodule.c @@ -484,8 +484,7 @@ static int keyobject_traverse(keyobject *ko, visitproc visit, void *arg) { Py_VISIT(ko->cmp); - if (ko->object) - Py_VISIT(ko->object); + Py_VISIT(ko->object); return 0; } -- cgit v1.2.1