From: Zac Medico Date: Thu, 21 Jun 2007 12:12:01 +0000 (-0000) Subject: Implement UserConfigKlass.__iter__() so that tests pass. X-Git-Tag: v2.2_pre1~1203 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=30633be7220b5ed8adb8a75dee4642dd2726e452;p=portage.git Implement UserConfigKlass.__iter__() so that tests pass. svn path=/main/trunk/; revision=6914 --- diff --git a/pym/portage/env/config.py b/pym/portage/env/config.py index 192d10852..a354dcf7d 100644 --- a/pym/portage/env/config.py +++ b/pym/portage/env/config.py @@ -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.