diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-09-21 11:49:13 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-09-21 11:49:13 +0000 |
commit | dbe76c6a138288980772d9b4a42280903df2daa9 (patch) | |
tree | 72e9cf2b33968aea863dd5fd08eb0098ab2eb089 /bin/emaint | |
parent | e331119e79505f7e1ccded7c3d81fe612d60cb3d (diff) | |
download | portage-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-x | bin/emaint | 3 |
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) |