From dbe76c6a138288980772d9b4a42280903df2daa9 Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Mon, 21 Sep 2009 11:49:13 +0000 Subject: 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 --- bin/emaint | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bin/emaint') 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) -- cgit v1.2.3-1-g7c22