summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-25 05:29:02 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-25 05:29:02 +0000
commit6379e5dd27b5fd76939ac7d3a0ba07520451cd90 (patch)
tree27fa3c4348002b83efbb3239fb4218adb62cc4c7 /pym/repoman
parentFix more. (diff)
downloadportage-idfetch-6379e5dd27b5fd76939ac7d3a0ba07520451cd90.tar.gz
portage-idfetch-6379e5dd27b5fd76939ac7d3a0ba07520451cd90.tar.bz2
portage-idfetch-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 'pym/repoman')
-rw-r--r--pym/repoman/utilities.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/repoman/utilities.py b/pym/repoman/utilities.py
index 45160cfc..5ce38673 100644
--- a/pym/repoman/utilities.py
+++ b/pym/repoman/utilities.py
@@ -346,7 +346,7 @@ def FindPortdir(settings):
Args:
settings - portage.config instance, preferably repoman_settings
Returns:
- tuple(portdir, portdir_overlay, location)
+ list(portdir, portdir_overlay, location)
"""
portdir = None
@@ -430,4 +430,4 @@ def FindPortdir(settings):
if not portdir.endswith('/'):
portdir += '/'
- return map(normalize_path, (portdir, portdir_overlay, location))
+ return [normalize_path(x) for x in (portdir, portdir_overlay, location)]