From: Zac Medico Date: Tue, 3 Jul 2007 06:24:38 +0000 (-0000) Subject: Implement BlockerCache.keys() so that DictMixin.__repr__() works. (trunk r7135) X-Git-Tag: v2.1.3~101 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6bfdf598220dda3c3b242554993a11d794db0f1c;p=portage.git Implement BlockerCache.keys() so that DictMixin.__repr__() works. (trunk r7135) svn path=/main/branches/2.1.2/; revision=7136 --- diff --git a/bin/emerge b/bin/emerge index 58c53d4cd..99bfbb4d8 100755 --- a/bin/emerge +++ b/bin/emerge @@ -959,6 +959,13 @@ class BlockerCache(DictMixin): """ return self.BlockerData(*self._cache_data["blockers"][cpv]) + def keys(self): + """This needs to be implemented so that self.__repr__() doesn't raise + an AttributeError.""" + if self._cache_data and "blockers" in self._cache_data: + return self._cache_data["blockers"].keys() + return [] + def show_invalid_depstring_notice(parent_node, depstring, error_msg): from formatter import AbstractFormatter, DumbWriter