From 0b9b1293bc6038f4998c3e664125cfad38a7d5e7 Mon Sep 17 00:00:00 2001
From: Piotr Maslanka <piotr.maslanka@henrietta.com.pl>
Date: Tue, 10 Jan 2017 04:08:03 +0100
Subject: [PATCH] exec -> py3

---
 coolamqp/framing/compilation/content_property.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/coolamqp/framing/compilation/content_property.py b/coolamqp/framing/compilation/content_property.py
index def6f30..4cdb877 100644
--- a/coolamqp/framing/compilation/content_property.py
+++ b/coolamqp/framing/compilation/content_property.py
@@ -118,5 +118,7 @@ def _compile_particular_content_property_list_class(zpf, fields):
 def compile_particular_content_property_list_class(zpf, fields):
     q = _compile_particular_content_property_list_class(zpf, fields)
     logger.debug('Compiling\n%s', q)
-    exec(q)
-    return ParticularContentTypeList
+    loc = {}
+    exec(q, globals(), loc)
+    return loc['ParticularContentTypeList']
+
-- 
GitLab