From 6379e5dd27b5fd76939ac7d3a0ba07520451cd90 Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Fri, 25 Sep 2009 05:29:02 +0000 Subject: Use list comprehensions instead of filter() or map() in some places for compatibility with Python 3. svn path=/main/trunk/; revision=14421 --- bin/emaint | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin/emaint') 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 -- cgit v1.2.3-1-g7c22