From 11a24d043249c1dacdca5bcde6faa74116d066e3 Mon Sep 17 00:00:00 2001 From: Karl Kroening Date: Wed, 5 Jul 2017 04:23:05 -0600 Subject: [PATCH] #17: fix `get_outgoing_edges` --- ffmpeg/dag.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ffmpeg/dag.py b/ffmpeg/dag.py index 25e8d21..f432d84 100644 --- a/ffmpeg/dag.py +++ b/ffmpeg/dag.py @@ -1,6 +1,5 @@ from builtins import object from collections import namedtuple -import copy import hashlib @@ -105,7 +104,7 @@ def get_incoming_edges(downstream_node, incoming_edge_map): def get_outgoing_edges(upstream_node, outgoing_edge_map): edges = [] - for upstream_label, (downstream_node, downstream_label) in outgoing_edge_map: + for upstream_label, (downstream_node, downstream_label) in outgoing_edge_map.items(): edges += [DagEdge(downstream_node, downstream_label, upstream_node, upstream_label)] return edges