summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-02-05 20:33:03 +0000
committerAlan Conway <aconway@apache.org>2007-02-05 20:33:03 +0000
commitfc8f20319e9e53f5b879c9b10ef96a7dc1d32ab2 (patch)
tree0ee9910488399a016c3865dc84d8c0fa88fc2c3c /python
parentebc445ff8497c05bc2c091a1f660bb4c52d93f2c (diff)
downloadqpid-python-fc8f20319e9e53f5b879c9b10ef96a7dc1d32ab2.tar.gz
Added missing __str__ method for Responses.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@503857 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python')
-rw-r--r--python/qpid/connection.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/qpid/connection.py b/python/qpid/connection.py
index fb1e0927f0..f826aa0b29 100644
--- a/python/qpid/connection.py
+++ b/python/qpid/connection.py
@@ -113,6 +113,7 @@ class Connection:
garbage += chr(end)
end = c.decode_octet()
raise "frame error: expected %r, got %r" % (self.FRAME_END, garbage)
+ print "==== FRAME ", frame
return frame
class Frame:
@@ -232,6 +233,9 @@ class Response(Frame):
method = Method.decode(spec, dec, size - 20)
return Response(id, request_id, batch_offset, method)
+ def __str__(self):
+ return "[%s] Response(%s,%s,%s) %s" % (self.channel, self.id, self.request_id, self.batch_offset, self.method)
+
class Header(Frame):
type = "frame_header"