From ecdb5e5648f1797763c2e5568e6c755498105640 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 4 Jun 2010 10:12:37 -0700 Subject: [PATCH] Implement SlotDict.__repr__() to behave like dict. --- pym/portage/cache/mappings.py | 3 +++ 1 file changed, 3 insertions(+) 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__ -- 2.26.2