소스 검색

No longer possible to import subtask from task.base (removeal was scheduled for 2.4)

Ask Solem 13 년 전
부모
커밋
3fd8b0126b
1개의 변경된 파일0개의 추가작업 그리고 8개의 파일을 삭제
  1. 0 8
      celery/task/base.py

+ 0 - 8
celery/task/base.py

@@ -19,14 +19,6 @@ from ..utils import deprecated, timeutils
 Task = current_app.Task
 
 
-@deprecated("Importing subtask from celery.task.base",
-            alternative="Use celery.task.subtask instead.",
-            removal="2.4")
-def subtask(*args, **kwargs):
-    from celery.task.sets import subtask
-    return subtask(*args, **kwargs)
-
-
 class PeriodicTask(Task):
     """A periodic task is a task that behaves like a :manpage:`cron` job.