From 4b2bac68987e9675129e21e26a72018694945b5e Mon Sep 17 00:00:00 2001
From: Piotr Maslanka <piotr.maslanka@henrietta.com.pl>
Date: Tue, 10 Jan 2017 07:09:31 +0100
Subject: [PATCH] lol idk

---
 coolamqp/attaches/agroup.py               | 2 +-
 coolamqp/framing/compilation/utilities.py | 2 +-
 coolamqp/framing/extensions.py            | 5 -----
 3 files changed, 2 insertions(+), 7 deletions(-)
 delete mode 100644 coolamqp/framing/extensions.py

diff --git a/coolamqp/attaches/agroup.py b/coolamqp/attaches/agroup.py
index 3ccc032..d47cbf2 100644
--- a/coolamqp/attaches/agroup.py
+++ b/coolamqp/attaches/agroup.py
@@ -67,6 +67,6 @@ class AttacheGroup(Attache):
             if not attache.cancelled:
                 attache.attach(connection)
             else:
-                raise Exception
+                raise Exception(u'I should not have found a cancelled attache here...')
 
 
diff --git a/coolamqp/framing/compilation/utilities.py b/coolamqp/framing/compilation/utilities.py
index 2504eab..62ce740 100644
--- a/coolamqp/framing/compilation/utilities.py
+++ b/coolamqp/framing/compilation/utilities.py
@@ -165,7 +165,7 @@ def format_field_name(field):
     return field.replace('-', '_')
 
 def frepr(p, sop=six.text_type):
-    if isinstance(p, basestring):
+    if isinstance(p, (six.binary_type, six.text_type)):
         p = sop(p)
     s = repr(p)
 
diff --git a/coolamqp/framing/extensions.py b/coolamqp/framing/extensions.py
deleted file mode 100644
index 355ed0f..0000000
--- a/coolamqp/framing/extensions.py
+++ /dev/null
@@ -1,5 +0,0 @@
-# coding=UTF-8
-from __future__ import absolute_import, division, print_function
-"""Extension definitions"""
-
-PUBLISHER_CONFIRMS = b'publisher_confirms'
\ No newline at end of file
-- 
GitLab