summaryrefslogtreecommitdiff
path: root/sleekxmpp/roster/multi.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-01-10 20:03:22 -0800
committerLance Stout <lancestout@gmail.com>2012-01-10 20:03:22 -0800
commit1eb69f7075da2b26652c3193494d33b913ef91b1 (patch)
treeee9730b217cf2ef021681f251d135f7865498654 /sleekxmpp/roster/multi.py
parenta86935a42fba7ed3f944c58975c15a4cb79bbec0 (diff)
downloadslixmpp-1eb69f7075da2b26652c3193494d33b913ef91b1.tar.gz
slixmpp-1eb69f7075da2b26652c3193494d33b913ef91b1.tar.bz2
slixmpp-1eb69f7075da2b26652c3193494d33b913ef91b1.tar.xz
slixmpp-1eb69f7075da2b26652c3193494d33b913ef91b1.zip
Make the roster easier to inspect.
The __repr__ version now looks like a regular dictionary.
Diffstat (limited to 'sleekxmpp/roster/multi.py')
-rw-r--r--sleekxmpp/roster/multi.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sleekxmpp/roster/multi.py b/sleekxmpp/roster/multi.py
index ee56f2a8..36c7e2ad 100644
--- a/sleekxmpp/roster/multi.py
+++ b/sleekxmpp/roster/multi.py
@@ -182,3 +182,6 @@ class Roster(object):
self._auto_subscribe = value
for node in self._rosters:
self._rosters[node].auto_subscribe = value
+
+ def __repr__(self):
+ return repr(self._rosters)