]> granicus.if.org Git - python/commitdiff
Small code cleanup.
authorRaymond Hettinger <python@rcn.com>
Wed, 5 Mar 2008 21:04:32 +0000 (21:04 +0000)
committerRaymond Hettinger <python@rcn.com>
Wed, 5 Mar 2008 21:04:32 +0000 (21:04 +0000)
Modules/itertoolsmodule.c

index fe06ef48e38f2b6e5a1f6ff084c68fccddd36804..4d0ad087ae45fbec5390f86efeb3d76d058ed7c6 100644 (file)
@@ -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;
 }