aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2008-03-05 21:04:32 +0000
committerRaymond Hettinger <python@rcn.com>2008-03-05 21:04:32 +0000
commit6e3e415886fbd1c9e6df8393f87d7d40d96b5ec8 (patch)
treeb27ab64af828ac9e2f243bb524699af2f31583fa /Modules/itertoolsmodule.c
parentC implementation of itertools.permutations(). (diff)
downloadcpython-6e3e415886fbd1c9e6df8393f87d7d40d96b5ec8.tar.gz
cpython-6e3e415886fbd1c9e6df8393f87d7d40d96b5ec8.tar.bz2
cpython-6e3e415886fbd1c9e6df8393f87d7d40d96b5ec8.zip
Small code cleanup.
Diffstat (limited to 'Modules/itertoolsmodule.c')
-rw-r--r--Modules/itertoolsmodule.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c
index fe06ef48e38..4d0ad087ae4 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;
}