diff options
author | Scott Moser <smoser@ubuntu.com> | 2012-01-12 16:55:50 +0100 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2012-01-12 16:55:50 +0100 |
commit | 121e17d15dcf311f8e629788d74df10f7c291676 (patch) | |
tree | 7539ebfbd59a271fdc50cdfdd3ddd78f1bfc2ca0 /cloudinit/__init__.py | |
parent | 38f913377554f27159171a505b5805ee2537a905 (diff) | |
download | vyos-cloud-init-121e17d15dcf311f8e629788d74df10f7c291676.tar.gz vyos-cloud-init-121e17d15dcf311f8e629788d74df10f7c291676.zip |
[PATCH 11/13] Fix pylint warnings W0141 (used builtin function xyz)
From: Juerg Haefliger <juerg.haefliger@hp.com>
Replace superseded builtin functions 'filter' and 'map' using
list comprehension.
Diffstat (limited to 'cloudinit/__init__.py')
-rw-r--r-- | cloudinit/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cloudinit/__init__.py b/cloudinit/__init__.py index 72d988d5..1bdeb7f4 100644 --- a/cloudinit/__init__.py +++ b/cloudinit/__init__.py @@ -191,7 +191,8 @@ class CloudInit: cfglist=self.cfg['datasource_list'] dslist = list_sources(cfglist, self.ds_deps) - dsnames = map(lambda f: f.__name__, dslist) + dsnames = [f.__name__ for f in dslist] + log.debug("searching for data source in %s" % dsnames) for cls in dslist: ds = cls.__name__ |