Index: tools/opt-viewer/optpmap.py =================================================================== --- tools/opt-viewer/optpmap.py +++ tools/opt-viewer/optpmap.py @@ -42,7 +42,7 @@ func_and_args = [(func, arg, should_print_progress,) for arg in iterable] if processes == 1: - result = map(_wrapped_func, func_and_args, *args, **kwargs) + result = list(map(_wrapped_func, func_and_args, *args, **kwargs)) else: pool = multiprocessing.Pool(initializer=_init, initargs=(_current, _total,), Index: utils/schedcover.py =================================================================== --- utils/schedcover.py +++ utils/schedcover.py @@ -39,7 +39,7 @@ ordered_table = sorted(table.items(), key=operator.itemgetter(0)) ordered_models = ["itinerary", "default"] ordered_models.extend(sorted(models)) - ordered_models = filter(filter_model, ordered_models) + ordered_models = [m for m in ordered_models if filter_model(m)] # print header sys.stdout.write("instruction")