[pyrorql] deprecate pyrorql source (closes #2919299)
authorDavid Douard <david.douard@logilab.fr>
Tue, 07 Jan 2014 17:45:48 +0100
changeset 9374 1236d9058ad3
parent 9373 d5d9acadb975
child 9375 8e88576787c3
[pyrorql] deprecate pyrorql source (closes #2919299)
doc/3.18.rst
server/sources/pyrorql.py
--- a/doc/3.18.rst	Tue Dec 03 15:46:19 2013 +0100
+++ b/doc/3.18.rst	Tue Jan 07 17:45:48 2014 +0100
@@ -32,6 +32,10 @@
 Deprecation
 ---------------------
 
+* ``pyrorql`` sources have been deprecated. Multisource will be fully dropped
+  in the next version. If you are still using pyrorql, switch to ``datafeed``
+  **NOW**!
+
 * the old multi-source system
 
 
--- a/server/sources/pyrorql.py	Tue Dec 03 15:46:19 2013 +0100
+++ b/server/sources/pyrorql.py	Tue Jan 07 17:45:48 2014 +0100
@@ -20,6 +20,11 @@
 __docformat__ = "restructuredtext en"
 _ = unicode
 
+# module is lazily imported
+import warnings
+warnings.warn('Imminent drop of pyrorql source. Switch to datafeed now!',
+              DeprecationWarning)
+
 import threading
 from Pyro.errors import PyroError, ConnectionClosedError