diff options
| author | Mark McLoughlin <markmc@redhat.com> | 2012-05-10 14:25:19 +0100 |
|---|---|---|
| committer | Mark McLoughlin <markmc@redhat.com> | 2012-05-10 14:25:19 +0100 |
| commit | b4bbe117f7a374c18e573b11aca9da61c4e1c840 (patch) | |
| tree | a413e3c0a33dbbfac60216e07cf5c63ea51d1c90 /openstack/common | |
| parent | 5b0b59ed56abcd08b5a3f7fcf1af8639f9ef0a7c (diff) | |
| download | oslo-b4bbe117f7a374c18e573b11aca9da61c4e1c840.tar.gz oslo-b4bbe117f7a374c18e573b11aca9da61c4e1c840.tar.xz oslo-b4bbe117f7a374c18e573b11aca9da61c4e1c840.zip | |
cfg: use a list comprehension instead of map()
Change-Id: Iaccb71d83d957aae77fa0f6bc71952b899d3a159
Diffstat (limited to 'openstack/common')
| -rw-r--r-- | openstack/common/cfg.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openstack/common/cfg.py b/openstack/common/cfg.py index 08efeb7..5b97e28 100644 --- a/openstack/common/cfg.py +++ b/openstack/common/cfg.py @@ -1188,7 +1188,7 @@ class ConfigOpts(collections.Mapping): return self.GroupAttr(self, self._get_group(name)) info = self._get_opt_info(name, group) - default, opt, override = map(lambda k: info[k], sorted(info.keys())) + default, opt, override = [info[k] for k in sorted(info.keys())] if override is not None: return override |
