Implement UserConfigKlass.__iter__() so that tests pass.
authorZac Medico <zmedico@gentoo.org>
Thu, 21 Jun 2007 12:12:01 +0000 (12:12 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 21 Jun 2007 12:12:01 +0000 (12:12 -0000)
svn path=/main/trunk/; revision=6914

pym/portage/env/config.py

index 192d1085293d6980103921fcc60eec90ca83a199..a354dcf7de6b66198db5469c7f7419600b8e360e 100644 (file)
@@ -30,6 +30,9 @@ class UserConfigKlass(UserDict,object):
 
                self.data, self.errors = self._loader.load()
 
+       def __iter__(self):
+               return iter(self.data)
+
 class PackageKeywordsFile(UserConfigKlass):
        """
        Inherits from UserConfigKlass; implements a file-based backend.