[python-debian/master 04/36] Use a list comprehension instead of map, which returns an iterator in Python 3.

Colin Watson cjwatson at canonical.com
Mon Oct 8 07:41:19 UTC 2012


---
 lib/debian/arfile.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/debian/arfile.py b/lib/debian/arfile.py
index 4fbddae..2adfc9c 100644
--- a/lib/debian/arfile.py
+++ b/lib/debian/arfile.py
@@ -97,7 +97,7 @@ class ArFile(object):
     def getnames(self):
         """ Return a list of all member names in the archive. """
 
-        return map(lambda f: f.name, self.__members)
+        return [f.name for f in self.__members]
 
     def extractall():
         """ Not (yet) implemented. """
-- 
1.7.2.5





More information about the pkg-python-debian-commits mailing list