From 02c52a4ea14b200ba158f61754ac7744cb4dc176 Mon Sep 17 00:00:00 2001
From: Piotr Maslanka <piotr.maslanka@henrietta.com.pl>
Date: Sun, 8 Oct 2017 04:18:43 +0200
Subject: [PATCH] struct

---
 coolamqp/framing/compilation/content_property.py | 4 +++-
 coolamqp/framing/frames.py                       | 1 -
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/coolamqp/framing/compilation/content_property.py b/coolamqp/framing/compilation/content_property.py
index 53451df..447666e 100644
--- a/coolamqp/framing/compilation/content_property.py
+++ b/coolamqp/framing/compilation/content_property.py
@@ -124,9 +124,11 @@ class ParticularContentTypeList(AMQPContentPropertyList):
 
     return u''.join(mod)
 
+import struct
 
 def compile_particular_content_property_list_class(zpf, fields):
     q = _compile_particular_content_property_list_class(zpf, fields)
-    loc = {}
+    import struct
+    loc = {'struct': struct}
     exec (q, globals(), loc)
     return loc['ParticularContentTypeList']
diff --git a/coolamqp/framing/frames.py b/coolamqp/framing/frames.py
index 0401e31..705ee82 100644
--- a/coolamqp/framing/frames.py
+++ b/coolamqp/framing/frames.py
@@ -5,7 +5,6 @@ Concrete frame definitions
 from __future__ import absolute_import, division, print_function
 
 import struct
-
 import six
 
 from coolamqp.framing.base import AMQPFrame
-- 
GitLab