From 005e229d440a6f6fb463cd3e80c8b72913d3004b Mon Sep 17 00:00:00 2001 From: Kyr Shatskyy Date: Sat, 23 Nov 2019 18:06:04 +0100 Subject: [PATCH] prune: simplify expression for py3 Signed-off-by: Kyr Shatskyy --- teuthology/prune.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/teuthology/prune.py b/teuthology/prune.py index a98547a67a..dc720cb1ea 100644 --- a/teuthology/prune.py +++ b/teuthology/prune.py @@ -50,10 +50,7 @@ def prune_archive( log.debug("Archive {archive} has {count} children".format( archive=archive_dir, count=len(os.listdir(archive_dir)))) # Use full paths - children = map( - lambda p: os.path.join(archive_dir, p), - listdir(archive_dir) - ) + children = [os.path.join(archive_dir, p) for p in listdir(archive_dir)] run_dirs = list() for child in children: # Ensure that the path is not a symlink, is a directory, and is old -- 2.39.5