aboutsummaryrefslogtreecommitdiff
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 /bin/emaint
parentMake Atom.__init__ call the base class constructor, though it doesn't seem (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 'bin/emaint')
-rwxr-xr-xbin/emaint3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/emaint b/bin/emaint
index 52ed1f53b..407f8a66d 100755
--- a/bin/emaint
+++ b/bin/emaint
@@ -277,12 +277,11 @@ class MoveHandler(object):
maxval = len(cpv_all)
aux_update = self._tree.dbapi.aux_update
update_keys = self._update_keys
- from itertools import izip
from portage.update import update_dbentries
if onProgress:
onProgress(maxval, 0)
for i, cpv in enumerate(cpv_all):
- metadata = dict(izip(update_keys, aux_get(cpv, update_keys)))
+ metadata = dict(zip(update_keys, aux_get(cpv, update_keys)))
metadata_updates = update_dbentries(updates, metadata)
if metadata_updates:
errors.append("'%s' has outdated metadata" % cpv)