summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-06-04 10:12:37 -0700
committerZac Medico <zmedico@gentoo.org>2010-06-04 10:12:37 -0700
commitecdb5e5648f1797763c2e5568e6c755498105640 (patch)
tree1657270c53547ea760e29d3d0e4b8d7f4d35d020
parentb8be7aff8677b021dc01d24ed8772891f7a3db02 (diff)
downloadportage-ecdb5e5648f1797763c2e5568e6c755498105640.tar.gz
portage-ecdb5e5648f1797763c2e5568e6c755498105640.tar.bz2
portage-ecdb5e5648f1797763c2e5568e6c755498105640.zip
Implement SlotDict.__repr__() to behave like dict.
-rw-r--r--pym/portage/cache/mappings.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/cache/mappings.py b/pym/portage/cache/mappings.py
index 67f6dfcc6..0ef5c3ac6 100644
--- a/pym/portage/cache/mappings.py
+++ b/pym/portage/cache/mappings.py
@@ -497,6 +497,9 @@ def slot_dict_class(keys, prefix="_val_"):
def __str__(self):
return str(dict(self.iteritems()))
+ def __repr__(self):
+ return repr(dict(self.iteritems()))
+
if sys.hexversion >= 0x3000000:
items = iteritems
keys = __iter__