mirror of
https://github.com/kkroening/ffmpeg-python.git
synced 2025-04-05 12:48:09 +08:00
#17: don't rely on in
This commit is contained in:
parent
677967b4c2
commit
7236984626
@ -170,7 +170,8 @@ def topo_sort(start_nodes):
|
||||
child_map[node].append(child)
|
||||
if node not in sorted_nodes:
|
||||
marked_nodes.append(node)
|
||||
[visit(parent, node) for parent in node._parents]
|
||||
parents = [edge.upstream_node for edge in node.incoming_edges]
|
||||
[visit(parent, node) for parent in parents]
|
||||
marked_nodes.remove(node)
|
||||
sorted_nodes.append(node)
|
||||
unmarked_nodes = list(copy.copy(start_nodes))
|
||||
|
Loading…
x
Reference in New Issue
Block a user