repr(BrokerConnection) now shows connection URI

This commit is contained in:
Ask Solem 2011-01-12 13:37:11 +01:00
parent b3f005e3e2
commit 824a4bf59e
1 changed files with 1 additions and 4 deletions

View File

@ -362,10 +362,7 @@ class BrokerConnection(object):
def __repr__(self):
"""``x.__repr__() <==> repr(x)``"""
info = self.info()
return "<BrokerConnection: %s>" % (
", ".join("%s=%r" % (item, info[item])
for item in info.keys()[:8]))
return "<BrokerConnection: %s>" % self.as_uri()
def __copy__(self):
"""``x.__copy__() <==> copy(x)``"""