From c010b160dc94a38a8547d95a68fe468333f78d24 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 30 Jul 2007 05:36:55 +0000 Subject: [PATCH] Implement BlockerCache.keys() so that DictMixin.__repr__() works. (branches/2.1.2 r7136) svn path=/main/branches/2.1.2.9/; revision=7489 --- bin/emerge | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/emerge b/bin/emerge index be441ba59..f6599308f 100755 --- a/bin/emerge +++ b/bin/emerge @@ -880,6 +880,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