projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8be7af
)
Implement SlotDict.__repr__() to behave like dict.
author
Zac Medico
<zmedico@gentoo.org>
Fri, 4 Jun 2010 17:12:37 +0000
(10:12 -0700)
committer
Zac Medico
<zmedico@gentoo.org>
Fri, 4 Jun 2010 17:12:37 +0000
(10:12 -0700)
pym/portage/cache/mappings.py
patch
|
blob
|
history
diff --git
a/pym/portage/cache/mappings.py
b/pym/portage/cache/mappings.py
index 67f6dfcc6148885e81b6e404ce5fbafb9ce1b2b8..0ef5c3ac6afaea0562f69faffe119d480f527f79 100644
(file)
--- 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__