mirror of
https://github.com/python/cpython.git
synced 2025-10-06 23:21:06 +00:00
bpo-40898: Remove redundant if statements in tp_traverse (GH-20692)
This commit is contained in:
parent
b8867e5d5a
commit
47a23fc63f
4 changed files with 5 additions and 13 deletions
|
@ -999,8 +999,7 @@ cycle_dealloc(cycleobject *lz)
|
|||
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue