summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/search.py
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-21 11:49:13 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-21 11:49:13 +0000
commitdbe76c6a138288980772d9b4a42280903df2daa9 (patch)
tree72e9cf2b33968aea863dd5fd08eb0098ab2eb089 /pym/_emerge/search.py
parente331119e79505f7e1ccded7c3d81fe612d60cb3d (diff)
downloadportage-dbe76c6a138288980772d9b4a42280903df2daa9.tar.gz
portage-dbe76c6a138288980772d9b4a42280903df2daa9.tar.bz2
portage-dbe76c6a138288980772d9b4a42280903df2daa9.zip
Use filter() and zip() instead of itertools.ifilter() and itertools.izip() for compatibility with Python 3.
(2to3-3.1 -f itertools -f itertools_imports -nw ${FILES}) svn path=/main/trunk/; revision=14314
Diffstat (limited to 'pym/_emerge/search.py')
-rw-r--r--pym/_emerge/search.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pym/_emerge/search.py b/pym/_emerge/search.py
index 82c49b39c..355307972 100644
--- a/pym/_emerge/search.py
+++ b/pym/_emerge/search.py
@@ -5,7 +5,6 @@
from __future__ import print_function
import re
-from itertools import izip
import portage
from portage import os
from portage.output import bold, bold as white, darkgreen, green, red
@@ -142,7 +141,7 @@ class search(object):
else:
db_keys = list(db._aux_cache_keys)
for cpv in db.match(atom):
- metadata = izip(db_keys,
+ metadata = zip(db_keys,
db.aux_get(cpv, db_keys))
if not self._visible(db, cpv, metadata):
continue
@@ -165,7 +164,7 @@ class search(object):
for cpv in reversed(db.match(atom)):
if portage.cpv_getkey(cpv) != cp:
continue
- metadata = izip(db_keys,
+ metadata = zip(db_keys,
db.aux_get(cpv, db_keys))
if not self._visible(db, cpv, metadata):
continue