@@ -941,14 +941,14 @@ def handle_iterate_opts(self):
941
941
for opt in ITERATE_OPTIONS :
942
942
# keep track of list, supply first element as first option to handle
943
943
if isinstance (self .cfg [opt ], (list , tuple )):
944
- self .iter_opts [opt + suffix ] = self .cfg [opt ][:: - 1 ] # reversed copy
944
+ self .iter_opts [opt + suffix ] = self .cfg [opt ] # copy
945
945
self .log .debug ("Found list for %s: %s" % (opt , self .iter_opts [opt + suffix ]))
946
946
947
947
# pop first element from all *_list options as next value to use
948
948
for (lsname , ls ) in self .iter_opts .items ():
949
949
opt = lsname [:- sufflen ] # drop '_list' part from name to get option name
950
- if len (self .cfg [ opt ]) > 0 :
951
- self .cfg [opt ] = self .iter_opts [lsname ].pop () # first element will be used next
950
+ if len (self .iter_opts [ lsname ]) > 0 :
951
+ self .cfg [opt ] = self .iter_opts [lsname ].pop (0 ) # first element will be used next
952
952
else :
953
953
self .cfg [opt ] = '' # empty list => empty option as next value
954
954
self .log .debug ("Next value for %s: %s" % (opt , str (self .cfg [opt ])))
@@ -1675,7 +1675,6 @@ def prepare_step_spec(initial):
1675
1675
('module' , 'creating module' , [lambda x : x .make_module_step ()], False ),
1676
1676
]
1677
1677
1678
-
1679
1678
# full list of steps, included iterated steps
1680
1679
steps = steps_part1 + steps_part2 + steps_part3
1681
1680
0 commit comments