From c39d9f8f88b880560b08e195dadc5d33d052f21f Mon Sep 17 00:00:00 2001 From: Piotr Maslanka <piotr.maslanka@henrietta.com.pl> Date: Sun, 8 Oct 2017 04:26:17 +0200 Subject: [PATCH] lol --- coolamqp/framing/compilation/content_property.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/coolamqp/framing/compilation/content_property.py b/coolamqp/framing/compilation/content_property.py index 776291d..eccf86e 100644 --- a/coolamqp/framing/compilation/content_property.py +++ b/coolamqp/framing/compilation/content_property.py @@ -121,11 +121,15 @@ 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 = {'struct': struct, 'AMQPContentPropertyList': AMQPContentPropertyList} - exec (q, globals(), loc) + loc = dict(globals(), **{ + 'struct': struct, + 'AMQPContentPropertyList': AMQPContentPropertyList}) + exec (q, loc) return loc['ParticularContentTypeList'] -- GitLab