Blame SOURCES/qpid-transport-works-with-celery-4.patch

rdobuilder f0da47
diff --git a/kombu/transport/qpid.py b/kombu/transport/qpid.py
rdobuilder f0da47
index 2204624..35da356 100644
rdobuilder f0da47
--- a/kombu/transport/qpid.py
rdobuilder f0da47
+++ b/kombu/transport/qpid.py
rdobuilder f0da47
@@ -850,7 +850,7 @@ def basic_get(self, queue, no_ack=False, **kwargs):
rdobuilder f0da47
         except Empty:
rdobuilder f0da47
             pass
rdobuilder f0da47
rdobuilder f0da47
-    def basic_ack(self, delivery_tag):
rdobuilder f0da47
+    def basic_ack(self, delivery_tag, multiple=False):
rdobuilder f0da47
         """Acknowledge a message by delivery_tag.
rdobuilder f0da47
rdobuilder f0da47
         Acknowledges a message referenced by delivery_tag. Messages can
rdobuilder f0da47
@@ -864,8 +864,12 @@ def basic_ack(self, delivery_tag):
rdobuilder f0da47
         :param delivery_tag: The delivery tag associated with the message
rdobuilder f0da47
             to be acknowledged.
rdobuilder f0da47
         :type delivery_tag: uuid.UUID
rdobuilder f0da47
+        :param multiple: not implemented. If set to True an AssertionError
rdobuilder f0da47
+            is raised.
rdobuilder f0da47
+        :type multiple: bool
rdobuilder f0da47
rdobuilder f0da47
         """
rdobuilder f0da47
+        assert multiple is False
rdobuilder f0da47
         self.qos.ack(delivery_tag)
rdobuilder f0da47
rdobuilder f0da47
     def basic_reject(self, delivery_tag, requeue=False):