From b378e89318a18e58eff9a06dc4b7158de9c1d77b Mon Sep 17 00:00:00 2001 From: Piotr Maslanka <piotr.maslanka@henrietta.com.pl> Date: Tue, 10 Jan 2017 07:00:58 +0100 Subject: [PATCH] py3 - remnants of buffers --- coolamqp/framing/definitions.py | 2 +- coolamqp/framing/frames.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/coolamqp/framing/definitions.py b/coolamqp/framing/definitions.py index e387a50..ff63f68 100644 --- a/coolamqp/framing/definitions.py +++ b/coolamqp/framing/definitions.py @@ -2438,7 +2438,7 @@ class BasicContentPropertyList(AMQPContentPropertyList): if zpf in BasicContentPropertyList.PARTICULAR_CLASSES: return BasicContentPropertyList.PARTICULAR_CLASSES[zpf].from_buffer(buf, offset) else: - logger.debug('Property field (BasicContentPropertyList:%s) not seen yet, compiling', repr(zpf)) + logger.debug(u'Property field (BasicContentPropertyList:%s) not seen yet, compiling', repr(zpf)) c = compile_particular_content_property_list_class(zpf, BasicContentPropertyList.FIELDS) BasicContentPropertyList.PARTICULAR_CLASSES[zpf] = c return c.from_buffer(buf, offset) diff --git a/coolamqp/framing/frames.py b/coolamqp/framing/frames.py index c819a30..2f06d6d 100644 --- a/coolamqp/framing/frames.py +++ b/coolamqp/framing/frames.py @@ -97,7 +97,7 @@ class AMQPBodyFrame(AMQPFrame): :type data: binary """ AMQPFrame.__init__(self, channel) - assert isinstance(data, (six.binary_type, buffer, memoryview)) + assert isinstance(data, (six.binary_type, memoryview)) self.data = data def write_to(self, buf): -- GitLab