Remove most map() and filter() usage

They aren't available on python3 so pylint complains, and list
comprehensions are usually better.
This commit is contained in:
Cole Robinson
2013-04-11 16:32:00 -04:00
parent c5e45ae448
commit a386186c74
29 changed files with 91 additions and 88 deletions

View File

@@ -343,7 +343,7 @@ class vmmCloneVM(vmmGObjectUI):
storage_list = {}
# We need to determine which disks fail (and why).
all_targets = map(lambda d: d.target, diskinfos)
all_targets = [d.target for d in diskinfos]
for disk in diskinfos:
force_target = disk.target