Browse Source

Warning emitted by celery.decorators was accidentally UserWarning (should be deprecationwarning)

Ask Solem 14 years ago
parent
commit
8670d21eb3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      celery/decorators.py

+ 2 - 2
celery/decorators.py

@@ -17,7 +17,7 @@ import warnings
 from celery import task as _task
 
 
-warnings.warn("""
+warnings.warn(PendingDeprecationWarning("""
 The `celery.decorators` module and the magic keyword arguments
 are pending deprecation and will be deprecated in 2.4, then removed
 in 3.0.
@@ -27,7 +27,7 @@ and `celery.task.task` used instead of `celery.decorators.task`.
 
 See the 2.2 Changelog for more information.
 
-""")
+"""))
 
 
 def task(*args, **kwargs):  # ✞