summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-07-03 06:23:22 +0000
committerZac Medico <zmedico@gentoo.org>2007-07-03 06:23:22 +0000
commiteb99f07797c11156c032372a122cb7b73d8b23c1 (patch)
tree02dab7c5b070b64b86dab48d147133de82abcf92
parent84f4c54f506d4a17fa087b66357e62f9db6fb015 (diff)
downloadportage-eb99f07797c11156c032372a122cb7b73d8b23c1.tar.gz
portage-eb99f07797c11156c032372a122cb7b73d8b23c1.tar.bz2
portage-eb99f07797c11156c032372a122cb7b73d8b23c1.zip
Implement BlockerCache.keys() so that DictMixin.__repr__() works.
svn path=/main/trunk/; revision=7135
-rw-r--r--pym/emerge/__init__.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py
index 28d36919c..ec7c1ec9a 100644
--- a/pym/emerge/__init__.py
+++ b/pym/emerge/__init__.py
@@ -960,6 +960,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