summaryrefslogtreecommitdiff
path: root/qpid/cpp/bindings
diff options
context:
space:
mode:
authorKenneth Anthony Giusti <kgiusti@apache.org>2013-11-26 18:46:35 +0000
committerKenneth Anthony Giusti <kgiusti@apache.org>2013-11-26 18:46:35 +0000
commitb04a9ca11ed3e41f30d6b4d4e32bb8d26bd65423 (patch)
tree0de11a2a8af3a0cb3f64e1d5c3964a57158c357e /qpid/cpp/bindings
parenteb342c306d556dc5d58c2d90d76e96345dc5cb1c (diff)
downloadqpid-python-b04a9ca11ed3e41f30d6b4d4e32bb8d26bd65423.tar.gz
QPID-5369: add deprecation warnings to the QMF2 wrapped modules
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1545776 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/bindings')
-rw-r--r--qpid/cpp/bindings/qmf2/python/qmf2.py4
-rw-r--r--qpid/cpp/bindings/qmf2/ruby/qmf2.rb2
2 files changed, 6 insertions, 0 deletions
diff --git a/qpid/cpp/bindings/qmf2/python/qmf2.py b/qpid/cpp/bindings/qmf2/python/qmf2.py
index 1d35b93601..601e68f7b6 100644
--- a/qpid/cpp/bindings/qmf2/python/qmf2.py
+++ b/qpid/cpp/bindings/qmf2/python/qmf2.py
@@ -17,6 +17,10 @@
# under the License.
#
+import warnings
+warnings.warn("The qmf2 module is deprecated. It will be removed in the future.",
+ Warning, stacklevel=2)
+
import cqmf2
import qpid_messaging
from threading import Thread
diff --git a/qpid/cpp/bindings/qmf2/ruby/qmf2.rb b/qpid/cpp/bindings/qmf2/ruby/qmf2.rb
index c14ecba4e1..b38aeae6dc 100644
--- a/qpid/cpp/bindings/qmf2/ruby/qmf2.rb
+++ b/qpid/cpp/bindings/qmf2/ruby/qmf2.rb
@@ -17,6 +17,8 @@
# under the License.
#
+warn 'The qmf2 module is deprecated. It will be removed in the future.'
+
require 'cqmf2'
require 'cqpid'
require 'thread'