Fix the message __repr__ formatter

Change-Id: I64d290a2e35a342e6a8d999e1a78f3901e6b7b6f
This commit is contained in:
Angus Salkeld
2014-02-11 21:09:31 +10:00
parent f53a284e77
commit 18dc3183a9

View File

@@ -104,8 +104,8 @@ class Message(object):
self._id = href.split('/')[-1]
def __repr__(self):
return '<Message id:%(id)s ttl:%(ttl)s>'.format(id=self._id,
ttl=self.ttl)
return '<Message id:{id} ttl:{ttl}>'.format(id=self._id,
ttl=self.ttl)
def delete(self):
req, trans = self.queue.client._request_and_transport()