diff options
| author | Ken Giusti <kgiusti@apache.org> | 2013-11-26 18:46:35 +0000 |
|---|---|---|
| committer | Ken Giusti <kgiusti@apache.org> | 2013-11-26 18:46:35 +0000 |
| commit | 9c1389e6fbdf56a87eff31e8f85238be821aece5 (patch) | |
| tree | a5c99d8a6627464afc67984dd5226560565a02cd /cpp | |
| parent | bdbd978b38cec8f5d336d24d6370bec40704d53f (diff) | |
| download | qpid-python-9c1389e6fbdf56a87eff31e8f85238be821aece5.tar.gz | |
QPID-5369: add deprecation warnings to the QMF2 wrapped modules
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1545776 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
| -rw-r--r-- | cpp/bindings/qmf2/python/qmf2.py | 4 | ||||
| -rw-r--r-- | cpp/bindings/qmf2/ruby/qmf2.rb | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/cpp/bindings/qmf2/python/qmf2.py b/cpp/bindings/qmf2/python/qmf2.py index 1d35b93601..601e68f7b6 100644 --- a/cpp/bindings/qmf2/python/qmf2.py +++ b/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/cpp/bindings/qmf2/ruby/qmf2.rb b/cpp/bindings/qmf2/ruby/qmf2.rb index c14ecba4e1..b38aeae6dc 100644 --- a/cpp/bindings/qmf2/ruby/qmf2.rb +++ b/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' |
