From 74b31bbe47b90356af0289d5e3e345a298ca2ed6 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Thu, 21 Sep 2017 02:37:27 +0530 Subject: [PATCH] core: better Message.__repr__. --- mitogen/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mitogen/core.py b/mitogen/core.py index 1605e153..a6ffc182 100644 --- a/mitogen/core.py +++ b/mitogen/core.py @@ -199,9 +199,9 @@ class Message(object): raise StreamError('invalid message: %s', ex) def __repr__(self): - return 'Message(%r, %r, %r, %r, %r..)' % ( + return 'Message(%r, %r, %r, %r, %r..%d)' % ( self.dst_id, self.src_id, self.handle, self.reply_to, - (self.data or '')[:50] + (self.data or '')[:50], len(self.data) )