Selaa lähdekoodia

celery.decorators module now deprecated (previously pending)

Ask Solem 13 vuotta sitten
vanhempi
commit
dbe4b6a847
1 muutettua tiedostoa jossa 7 lisäystä ja 6 poistoa
  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.
 
 """))