mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Use next() builtin
This commit is contained in:
parent
b63ae623f4
commit
122536675f
1 changed files with 3 additions and 3 deletions
|
|
@ -29,18 +29,18 @@ def get_all_children(nodes):
|
|||
dag = sel.getDagPath(0)
|
||||
|
||||
iterator.reset(dag)
|
||||
iterator.next() # ignore self
|
||||
next(iterator) # ignore self
|
||||
while not iterator.isDone():
|
||||
|
||||
path = iterator.fullPathName()
|
||||
|
||||
if path in traversed:
|
||||
iterator.prune()
|
||||
iterator.next()
|
||||
next(iterator)
|
||||
continue
|
||||
|
||||
traversed.add(path)
|
||||
iterator.next()
|
||||
next(iterator)
|
||||
|
||||
return list(traversed)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue