diff options
author | Lance Stout <lancestout@gmail.com> | 2012-01-10 20:03:22 -0800 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2012-01-10 20:03:22 -0800 |
commit | 1eb69f7075da2b26652c3193494d33b913ef91b1 (patch) | |
tree | ee9730b217cf2ef021681f251d135f7865498654 /sleekxmpp/roster/single.py | |
parent | a86935a42fba7ed3f944c58975c15a4cb79bbec0 (diff) | |
download | slixmpp-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/single.py')
-rw-r--r-- | sleekxmpp/roster/single.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sleekxmpp/roster/single.py b/sleekxmpp/roster/single.py index c2c7497d..903333a3 100644 --- a/sleekxmpp/roster/single.py +++ b/sleekxmpp/roster/single.py @@ -285,3 +285,6 @@ class RosterNode(object): if not self.xmpp.sentpresence: self.xmpp.event('sent_presence') self.xmpp.sentpresence = True + + def __repr__(self): + return repr(self._jids) |