mirror of https://github.com/celery/kombu.git
repr(BrokerConnection) now shows connection URI
This commit is contained in:
parent
b3f005e3e2
commit
824a4bf59e
|
@ -362,10 +362,7 @@ class BrokerConnection(object):
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
"""``x.__repr__() <==> repr(x)``"""
|
"""``x.__repr__() <==> repr(x)``"""
|
||||||
info = self.info()
|
return "<BrokerConnection: %s>" % self.as_uri()
|
||||||
return "<BrokerConnection: %s>" % (
|
|
||||||
", ".join("%s=%r" % (item, info[item])
|
|
||||||
for item in info.keys()[:8]))
|
|
||||||
|
|
||||||
def __copy__(self):
|
def __copy__(self):
|
||||||
"""``x.__copy__() <==> copy(x)``"""
|
"""``x.__copy__() <==> copy(x)``"""
|
||||||
|
|
Loading…
Reference in New Issue