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 @@ -309,7 +309,7 @@ def get_planners(self, method_name):
309
309
310
310
def plan (self , method , args , kw_args ):
311
311
all_planners = self ._planners
312
- futures = dict ()
312
+ futures = []
313
313
results = [None ] * len (self ._planners )
314
314
315
315
# Helper function to call a planner and return its result.
@@ -327,12 +327,12 @@ def call_planner(planner):
327
327
.format (planner , method ))
328
328
continue
329
329
else :
330
- futures [ index ] = defer (call_planner , args = (planner ,))
330
+ futures . append (( index , defer (call_planner , args = (planner ,)) ))
331
331
332
332
# Each time a planner completes, check if we have a valid result
333
333
# (a planner found a solution and all higher-ranked planners had
334
334
# already failed).
335
- for index , future in futures . viewitems () :
335
+ for index , future in futures :
336
336
try :
337
337
return future .result ()
338
338
except MetaPlanningError as e :
You can’t perform that action at this time.
0 commit comments