Fix items to prevent infinite recursion.
authorZac Medico <zmedico@gentoo.org>
Tue, 22 Sep 2009 02:02:45 +0000 (02:02 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 22 Sep 2009 02:02:45 +0000 (02:02 -0000)
svn path=/main/trunk/; revision=14371

pym/portage/cache/template.py

index 650f5135d5776e2526ba2a59dd0783382ab6ee9a..9e779520b3422c417503d7d03df03bfa5f33e994 100644 (file)
@@ -120,7 +120,7 @@ class database(object):
                        yield (x, self[x])
 
        def items(self):
-               return list(self.items())
+               return list(self.iteritems())
 
        def sync(self, rate=0):
                self.sync_rate = rate