From b04a9ca11ed3e41f30d6b4d4e32bb8d26bd65423 Mon Sep 17 00:00:00 2001 From: Kenneth Anthony Giusti Date: Tue, 26 Nov 2013 18:46:35 +0000 Subject: 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 --- qpid/cpp/bindings/qmf2/python/qmf2.py | 4 ++++ qpid/cpp/bindings/qmf2/ruby/qmf2.rb | 2 ++ 2 files changed, 6 insertions(+) (limited to 'qpid/cpp/bindings') 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' -- cgit v1.2.1