From 44b6a5a3772770fc2cc8ced68df9ee9477172447 Mon Sep 17 00:00:00 2001 From: Ask Solem Date: Tue, 9 Dec 2014 16:18:18 +0000 Subject: [PATCH] Use format :#x --- kombu/connection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kombu/connection.py b/kombu/connection.py index 10c37d5c..ff5442bb 100644 --- a/kombu/connection.py +++ b/kombu/connection.py @@ -227,7 +227,7 @@ class Connection(object): def _debug(self, msg, *args, **kwargs): if self._logger: # pragma: no cover - fmt = '[Kombu connection:0x{id:x}] {msg}' + fmt = '[Kombu connection:{id:#x}] {msg}' logger.debug(fmt.format(id=id(self), msg=text_t(msg)), *args, **kwargs) @@ -699,7 +699,7 @@ class Connection(object): def __repr__(self): """``x.__repr__() <==> repr(x)``""" - return ''.format(self.as_uri(), id(self)) + return ''.format(self.as_uri(), id(self)) def __copy__(self): """``x.__copy__() <==> copy(x)``"""