Explorar o código

celery.decorators module now deprecated (previously pending)

Ask Solem %!s(int64=13) %!d(string=hai) anos
pai
achega
dbe4b6a847
Modificáronse 1 ficheiros con 7 adicións e 6 borrados
  1. 7 6
      celery/decorators.py

+ 7 - 6
celery/decorators.py

@@ -21,14 +21,15 @@ from .exceptions import CDeprecationWarning
 
 
 warnings.warn(CDeprecationWarning("""
-The `celery.decorators` module and the magic keyword arguments
-are pending deprecation and will be deprecated in 2.4, then removed
-in 3.0.
+The `celery.decorators` module along with the magic keyword arguments,
+are deprecated, and will be removed in version 3.0.
 
-`task.request` should be used instead of magic keyword arguments,
-and `celery.task.task` used instead of `celery.decorators.task`.
+Please use the `celery.task` module instead of `celery.decorators`,
+and the `task.request` should be used instead of the magic keyword arguments:
 
-See the 2.2 Changelog for more information.
+    from celery.task import task
+
+See http://bit.ly/celery22major for more information.
 
 """))