Package: python-amqp / 1.4.5-2

remove-deprecation-warning.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: Removes deprecation warning
 The depraction warning is flooding Nova logs. As it's too late to fix Nova,
 best way forward is to just remove the depraction warning, which this patch
 does.
Author: Thomas Goirand <zigo@debian.org>
Bug-Debian: https://bugs.debian.org/774966
Forwarded: not-needed
Last-Update: 2014-01-17

--- python-amqp-1.4.5.orig/amqp/channel.py
+++ python-amqp-1.4.5/amqp/channel.py
@@ -612,9 +612,6 @@ class Channel(AbstractChannel):
         args.write_table(arguments)
         self._send_method((40, 10), args)
 
-        if auto_delete:
-            warn(VDeprecationWarning(EXCHANGE_AUTODELETE_DEPRECATED))
-
         if not nowait:
             return self.wait(allowed_methods=[
                 (40, 11),  # Channel.exchange_declare_ok