From: Zac Medico Date: Fri, 4 Jun 2010 17:12:37 +0000 (-0700) Subject: Implement SlotDict.__repr__() to behave like dict. X-Git-Tag: v2.2_rc68~556 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ecdb5e5648f1797763c2e5568e6c755498105640;p=portage.git Implement SlotDict.__repr__() to behave like dict. --- 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__