From 2a980f6e57f3cc1bc0a4fb4c19170deb19fef2a4 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Mon, 27 Nov 2017 00:33:40 -0800 Subject: [PATCH] Fix func tests: get rid of python3 lazy evaluation --- dvc/command/run.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dvc/command/run.py b/dvc/command/run.py index 5afe93078..ddb00c352 100644 --- a/dvc/command/run.py +++ b/dvc/command/run.py @@ -36,8 +36,7 @@ class CmdRun(CmdBase): @staticmethod def apply_to_files(files, command, func, settings): - map(lambda i: func(i, command, settings), - settings.path_factory.to_data_items(files)[0]) + [func(i, command, settings) for i in settings.path_factory.to_data_items(files)[0]] @staticmethod def _create_cache_and_state_files(data_item, command, settings):