diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-09-25 05:29:02 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-09-25 05:29:02 +0000 |
commit | 6379e5dd27b5fd76939ac7d3a0ba07520451cd90 (patch) | |
tree | 27fa3c4348002b83efbb3239fb4218adb62cc4c7 /bin/emaint | |
parent | f4d22626f9815776991ff051a8bde162af7b4be8 (diff) | |
download | portage-6379e5dd27b5fd76939ac7d3a0ba07520451cd90.tar.gz portage-6379e5dd27b5fd76939ac7d3a0ba07520451cd90.tar.bz2 portage-6379e5dd27b5fd76939ac7d3a0ba07520451cd90.zip |
Use list comprehensions instead of filter() or map() in some places for compatibility with Python 3.
svn path=/main/trunk/; revision=14421
Diffstat (limited to 'bin/emaint')
-rwxr-xr-x | bin/emaint | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/emaint b/bin/emaint index 7aac5d49a..2626036e9 100755 --- a/bin/emaint +++ b/bin/emaint @@ -80,9 +80,9 @@ class WorldHandler(object): self._check_world(onProgress) errors = [] if self.found: - errors += map(lambda x: "'%s' is not a valid atom" % x, self.invalid) - errors += map(lambda x: "'%s' is not installed" % x, self.not_installed) - errors += map(lambda x: "'%s' has a category that is not listed in /etc/portage/categories" % x, self.invalid_category) + errors += ["'%s' is not a valid atom" % x for x in self.invalid] + errors += ["'%s' is not installed" % x for x in self.not_installed] + errors += ["'%s' has a category that is not listed in /etc/portage/categories" % x for x in self.invalid_category] else: errors.append(self.world_file + " could not be opened for reading") return errors |