From 68246df89ec0055312ecbcff35ad9a1e7d381e84 Mon Sep 17 00:00:00 2001 From: Gae24 <96017547+Gae24@users.noreply.github.com> Date: Wed, 11 Sep 2024 19:32:01 +0200 Subject: fix clean-cargo-cache command (#33408) Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com> --- python/servo/bootstrap_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/servo/bootstrap_commands.py') diff --git a/python/servo/bootstrap_commands.py b/python/servo/bootstrap_commands.py index 362509ffc3a..bce289f2b66 100644 --- a/python/servo/bootstrap_commands.py +++ b/python/servo/bootstrap_commands.py @@ -252,7 +252,7 @@ class MachCommands(CommandBase): git_db_dir = path.join(git_dir, "db") git_checkout_dir = path.join(git_dir, "checkouts") if os.path.isdir(git_db_dir): - git_db_list = filter(lambda f: not f.startswith('.'), os.listdir(git_db_dir)) + git_db_list = list(filter(lambda f: not f.startswith('.'), os.listdir(git_db_dir))) else: git_db_list = [] if os.path.isdir(git_checkout_dir): -- cgit v1.2.3