File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -634,8 +634,8 @@ def generate_expanded_graph(graph_in):
634
634
# The itersource iterables is a {field: lookup} dictionary, where the
635
635
# lookup is a {source key: iteration list} dictionary. Look up the
636
636
# current iterable value using the predecessor itersource input values.
637
- iter_dict = { field : lookup [key ] for field , lookup in inode . iterables
638
- if key in lookup }
637
+ iter_dict = dict ([( field , lookup [key ]) for field , lookup in
638
+ inode . iterables if key in lookup ])
639
639
# convert the iterables to the standard {field: function} format
640
640
iter_items = map (lambda (field , value ): (field , lambda : value ),
641
641
iter_dict .iteritems ())
@@ -846,7 +846,7 @@ def _transpose_iterables(fields, values):
846
846
Otherwise, the result is a list of (field: value list) pairs.
847
847
"""
848
848
if isinstance (values , dict ):
849
- transposed = { field : defaultdict (list ) for field in fields }
849
+ transposed = dict ([( field , defaultdict (list )) for field in fields ])
850
850
for key , tuples in values .iteritems ():
851
851
for kvals in tuples :
852
852
for idx , val in enumerate (kvals ):
You can’t perform that action at this time.
0 commit comments