From 6e3e415886fbd1c9e6df8393f87d7d40d96b5ec8 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Wed, 5 Mar 2008 21:04:32 +0000 Subject: [PATCH] Small code cleanup. --- Modules/itertoolsmodule.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c index fe06ef48e3..4d0ad087ae 100644 --- a/Modules/itertoolsmodule.c +++ b/Modules/itertoolsmodule.c @@ -2362,10 +2362,8 @@ permutations_dealloc(permutationsobject *po) static int permutations_traverse(permutationsobject *po, visitproc visit, void *arg) { - if (po->pool != NULL) - Py_VISIT(po->pool); - if (po->result != NULL) - Py_VISIT(po->result); + Py_VISIT(po->pool); + Py_VISIT(po->result); return 0; } -- 2.40.0