From: Kyr Shatskyy Date: Sat, 23 Nov 2019 17:06:04 +0000 (+0100) Subject: prune: simplify expression for py3 X-Git-Tag: 1.1.0~177^2~10 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=005e229d440a6f6fb463cd3e80c8b72913d3004b;p=teuthology.git prune: simplify expression for py3 Signed-off-by: Kyr Shatskyy --- 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