From a79bbb2350f9d0fed182c3347cb5c927ad462101 Mon Sep 17 00:00:00 2001 From: Piotr Maslanka <piotr.maslanka@henrietta.com.pl> Date: Sun, 8 Oct 2017 07:06:11 +0200 Subject: [PATCH] LINES --- coolamqp/framing/field_table.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coolamqp/framing/field_table.py b/coolamqp/framing/field_table.py index 0e85462..1bc0951 100644 --- a/coolamqp/framing/field_table.py +++ b/coolamqp/framing/field_table.py @@ -12,7 +12,6 @@ A table is of form ( (name1::bytes, fv1), (name2::bytes, fv2), ...) NOTE: it's not buffers, it's memoryview all along """ -from __future__ import absolute_import, division, print_function import struct @@ -22,10 +21,12 @@ import six def _tobuf(buf, pattern, *vals): return buf.write(struct.pack(pattern, *vals)) + def _tobufv(buf, value, pattern, *vals): _tobuf(buf, pattern, *vals) buf.write(value) + def enframe_decimal(buf, v): # convert decimal to bytes dps = 0 for k in six.moves.xrange(20): -- GitLab