Fix infinite recursion in items and values methods.
authorZac Medico <zmedico@gentoo.org>
Mon, 21 Sep 2009 16:25:27 +0000 (16:25 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 21 Sep 2009 16:25:27 +0000 (16:25 -0000)
svn path=/main/trunk/; revision=14329

pym/portage/__init__.py

index e8532e60d7a68ee8b8cca01f474661a46c6b7d8b..d1dba8defb2c1c5c90318f9b6e23ada230c72d41 100644 (file)
@@ -3631,7 +3631,7 @@ class config(object):
                        yield (k, self[k])
 
        def items(self):
-               return list(self.items())
+               return list(self.iteritems())
 
        def __setitem__(self,mykey,myvalue):
                "set a value; will be thrown away at reset() time"