From 824a4bf59eb0e8868a059c2e947b87c57a95bfcf Mon Sep 17 00:00:00 2001 From: Ask Solem Date: Wed, 12 Jan 2011 13:37:11 +0100 Subject: [PATCH] repr(BrokerConnection) now shows connection URI --- kombu/connection.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/kombu/connection.py b/kombu/connection.py index 69ffaefc..0762650d 100644 --- a/kombu/connection.py +++ b/kombu/connection.py @@ -362,10 +362,7 @@ class BrokerConnection(object): def __repr__(self): """``x.__repr__() <==> repr(x)``""" - info = self.info() - return "" % ( - ", ".join("%s=%r" % (item, info[item]) - for item in info.keys()[:8])) + return "" % self.as_uri() def __copy__(self): """``x.__copy__() <==> copy(x)``"""