commit | 47a23fc63fa5df2da8dbc542e78e521d4a7f10c9 | [log] [tgz] |
---|---|---|
author | Hai Shi <shihai1992@gmail.com> | Sun Jun 07 20:05:36 2020 +0800 |
committer | GitHub <noreply@github.com> | Sun Jun 07 21:05:36 2020 +0900 |
tree | 672aa7892961efc225df0d3949ccb036cc7fe9d9 | |
parent | b8867e5d5aca33511942632b5f4e359b9245b2fa [diff] [blame] |
bpo-40898: Remove redundant if statements in tp_traverse (GH-20692)
diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c index 18fcebd..3f2f716 100644 --- a/Modules/itertoolsmodule.c +++ b/Modules/itertoolsmodule.c
@@ -999,8 +999,7 @@ static int cycle_traverse(cycleobject *lz, visitproc visit, void *arg) { - if (lz->it) - Py_VISIT(lz->it); + Py_VISIT(lz->it); Py_VISIT(lz->saved); return 0; }