From 6bfdf598220dda3c3b242554993a11d794db0f1c Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 3 Jul 2007 06:24:38 +0000 Subject: [PATCH] Implement BlockerCache.keys() so that DictMixin.__repr__() works. (trunk r7135) svn path=/main/branches/2.1.2/; revision=7136 --- bin/emerge | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.26.2