qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kgiu...@apache.org
Subject svn commit: r1545776 - in /qpid/trunk/qpid/cpp/bindings/qmf2: python/qmf2.py ruby/qmf2.rb
Date Tue, 26 Nov 2013 18:46:35 GMT
Author: kgiusti
Date: Tue Nov 26 18:46:35 2013
New Revision: 1545776

URL: http://svn.apache.org/r1545776
Log:
QPID-5369: add deprecation warnings to the QMF2 wrapped modules

Modified:
    qpid/trunk/qpid/cpp/bindings/qmf2/python/qmf2.py
    qpid/trunk/qpid/cpp/bindings/qmf2/ruby/qmf2.rb

Modified: qpid/trunk/qpid/cpp/bindings/qmf2/python/qmf2.py
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/bindings/qmf2/python/qmf2.py?rev=1545776&r1=1545775&r2=1545776&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/bindings/qmf2/python/qmf2.py (original)
+++ qpid/trunk/qpid/cpp/bindings/qmf2/python/qmf2.py Tue Nov 26 18:46:35 2013
@@ -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

Modified: qpid/trunk/qpid/cpp/bindings/qmf2/ruby/qmf2.rb
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/bindings/qmf2/ruby/qmf2.rb?rev=1545776&r1=1545775&r2=1545776&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/bindings/qmf2/ruby/qmf2.rb (original)
+++ qpid/trunk/qpid/cpp/bindings/qmf2/ruby/qmf2.rb Tue Nov 26 18:46:35 2013
@@ -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'



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message