소스 검색

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

Ask Solem 14 년 전
부모
커밋
8670d21eb3
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      celery/decorators.py

+ 2 - 2
celery/decorators.py

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