From 121e17d15dcf311f8e629788d74df10f7c291676 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Thu, 12 Jan 2012 16:55:50 +0100 Subject: [PATCH 11/13] Fix pylint warnings W0141 (used builtin function xyz) From: Juerg Haefliger Replace superseded builtin functions 'filter' and 'map' using list comprehension. --- cloudinit/CloudConfig/cc_mounts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cloudinit/CloudConfig') diff --git a/cloudinit/CloudConfig/cc_mounts.py b/cloudinit/CloudConfig/cc_mounts.py index 327b480f..a3036d5a 100644 --- a/cloudinit/CloudConfig/cc_mounts.py +++ b/cloudinit/CloudConfig/cc_mounts.py @@ -116,7 +116,7 @@ def handle(_name,cfg,cloud,log,_args): # now, each entry in the cfgmnt list has all fstab values # if the second field is None (not the string, the value) we skip it - actlist = filter(lambda x: x[1] is not None, cfgmnt) + actlist = [x for x in cfgmnt if x[1] is not None] if len(actlist) == 0: return -- cgit v1.2.3