summaryrefslogtreecommitdiffstats
path: root/pym/portage/cache/mappings.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/portage/cache/mappings.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/portage/cache/mappings.py')
-rw-r--r--pym/portage/cache/mappings.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/cache/mappings.py b/pym/portage/cache/mappings.py
index ed1b04261..b777ed1d0 100644
--- a/pym/portage/cache/mappings.py
+++ b/pym/portage/cache/mappings.py
@@ -105,7 +105,7 @@ class MutableMapping(Mapping):
def popitem(self):
try:
- k, v = iter(self.items()).next()
+ k, v = next(iter(self.items()))
except StopIteration:
raise KeyError('container is empty')
del self[k]
@@ -442,7 +442,7 @@ def slot_dict_class(keys, prefix="_val_"):
def popitem(self):
try:
- k, v = iter(self.items()).next()
+ k, v = next(iter(self.items()))
except StopIteration:
raise KeyError('container is empty')
del self[k]