move from filter builtin to list comprehensions

The Python style guide says to avoid filter() and stick to list
comprehensions.  Python 3 also changes its to be a generator, so
now is a good time to replace all of its users in the tree.

BUG=chromium:980619
TEST=lint is unchanged in chromite
TEST=unittests pass

Change-Id: I5948cb59ac69f4f94c31b28ee4d1d14e520b139a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/1703444
Tested-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Michael Mortensen <mmortensen@google.com>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
diff --git a/api/controller/artifacts.py b/api/controller/artifacts.py
index 17551de..88444cc 100644
--- a/api/controller/artifacts.py
+++ b/api/controller/artifacts.py
@@ -76,7 +76,7 @@
                constants.IMAGE_TYPE_BASE]
   img_names = [constants.IMAGE_TYPE_TO_NAME[t] for t in img_types]
   img_paths = map(functools.partial(os.path.join, img_dir), img_names)
-  valid_images = filter(os.path.exists, img_paths)
+  valid_images = [x for x in img_paths if os.path.exists(x)]
 
   if not valid_images:
     cros_build_lib.Die(