diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-06-21 12:12:01 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-06-21 12:12:01 +0000 |
commit | 30633be7220b5ed8adb8a75dee4642dd2726e452 (patch) | |
tree | 576dff6c87e81769f311290e280631f995896246 | |
parent | 766862042c7da01a8aa0a8f5ebd259fe72e1fd57 (diff) | |
download | portage-30633be7220b5ed8adb8a75dee4642dd2726e452.tar.gz portage-30633be7220b5ed8adb8a75dee4642dd2726e452.tar.bz2 portage-30633be7220b5ed8adb8a75dee4642dd2726e452.zip |
Implement UserConfigKlass.__iter__() so that tests pass.
svn path=/main/trunk/; revision=6914
-rw-r--r-- | pym/portage/env/config.py | 3 |
1 files changed, 3 insertions, 0 deletions
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. |