summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/BlockerDB.py
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-21 18:14:01 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-21 18:14:01 +0000
commit35b1511e59fceccff009fcae92fce3152bee1feb (patch)
tree9eef6112edfddb94c4df11eadceab3d28a3f5040 /pym/_emerge/BlockerDB.py
parentd8cd294a4cd4d984f4119d712718b62fab7c1b14 (diff)
downloadportage-35b1511e59fceccff009fcae92fce3152bee1feb.tar.gz
portage-35b1511e59fceccff009fcae92fce3152bee1feb.tar.bz2
portage-35b1511e59fceccff009fcae92fce3152bee1feb.zip
Use next(iterator) instead of iterator.next() for compatibility with Python 3.
(2to3-3.1 -f next -nw ${FILES}) svn path=/main/trunk/; revision=14355
Diffstat (limited to 'pym/_emerge/BlockerDB.py')
-rw-r--r--pym/_emerge/BlockerDB.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/_emerge/BlockerDB.py b/pym/_emerge/BlockerDB.py
index 1c4af1cae..8367ec651 100644
--- a/pym/_emerge/BlockerDB.py
+++ b/pym/_emerge/BlockerDB.py
@@ -119,7 +119,7 @@ class BlockerDB(object):
blocker_atoms = InternalPackageSet(initial_atoms=blocker_atoms)
for inst_pkg in installed_pkgs:
try:
- blocker_atoms.iterAtomsForPackage(inst_pkg).next()
+ next(blocker_atoms.iterAtomsForPackage(inst_pkg))
except (portage.exception.InvalidDependString, StopIteration):
continue
blocking_pkgs.add(inst_pkg)