summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2010-11-18 00:03:39 -0500
committerLance Stout <lancestout@gmail.com>2010-11-18 00:03:39 -0500
commit60d3afe6b6814bb5d30c4d4d355451d3c15364ca (patch)
treec7fb1953697d3224406885ff09a89bcd84c2da64
parentafeb8f3f7c1edade3c33003ad776758c77c8706c (diff)
downloadslixmpp-60d3afe6b6814bb5d30c4d4d355451d3c15364ca.tar.gz
slixmpp-60d3afe6b6814bb5d30c4d4d355451d3c15364ca.tar.bz2
slixmpp-60d3afe6b6814bb5d30c4d4d355451d3c15364ca.tar.xz
slixmpp-60d3afe6b6814bb5d30c4d4d355451d3c15364ca.zip
Added __repr__ for JIDs.
-rw-r--r--sleekxmpp/xmlstream/jid.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sleekxmpp/xmlstream/jid.py b/sleekxmpp/xmlstream/jid.py
index 33d845a0..d8f45b92 100644
--- a/sleekxmpp/xmlstream/jid.py
+++ b/sleekxmpp/xmlstream/jid.py
@@ -121,3 +121,6 @@ class JID(object):
def __str__(self):
"""Use the full JID as the string value."""
return self.full
+
+ def __repr__(self):
+ return str(self)