From 22effa6fbbf07a9e7bf5287d211e75c6f72a05ac Mon Sep 17 00:00:00 2001 From: Piotr Maslanka <piotr.maslanka@henrietta.com.pl> Date: Sun, 8 Oct 2017 04:26:55 +0200 Subject: [PATCH] lol --- coolamqp/framing/compilation/content_property.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/coolamqp/framing/compilation/content_property.py b/coolamqp/framing/compilation/content_property.py index eccf86e..ce970fb 100644 --- a/coolamqp/framing/compilation/content_property.py +++ b/coolamqp/framing/compilation/content_property.py @@ -41,7 +41,10 @@ def _compile_particular_content_property_list_class(zpf, fields): zpf_bits = [zpf_bit or field.type == 'bit' for zpf_bit, field in zip(zpf_bits, fields)] - mod = [u'''class ParticularContentTypeList(AMQPContentPropertyList): + mod = [u'''import struct +from coolamqp.framing.base import AMQPContentPropertyList + +class ParticularContentTypeList(AMQPContentPropertyList): """ For fields: '''] @@ -121,12 +124,11 @@ def _compile_particular_content_property_list_class(zpf, fields): return u''.join(mod) -import struct -from coolamqp.framing.base import AMQPContentPropertyList def compile_particular_content_property_list_class(zpf, fields): import struct from coolamqp.framing.base import AMQPContentPropertyList + q = _compile_particular_content_property_list_class(zpf, fields) loc = dict(globals(), **{ 'struct': struct, -- GitLab