Explorar o código

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

Ask Solem %!s(int64=13) %!d(string=hai) anos
pai
achega
3fd8b0126b
Modificáronse 1 ficheiros con 0 adicións e 8 borrados
  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.