Explorar o código

Emit DeprecationWarning instead of PendingDeprecationWarning in TaskSet.run

Ask Solem %!s(int64=15) %!d(string=hai) anos
pai
achega
d6c9188e12
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      celery/task/base.py

+ 1 - 1
celery/task/base.py

@@ -507,7 +507,7 @@ class TaskSet(object):
 
     def run(self, *args, **kwargs):
         """Deprecated alias to :meth:`apply_async`"""
-        warnings.warn(PendingDeprecationWarning(
+        warnings.warn(DeprecationWarning(
             "TaskSet.run will be deprecated in favor of TaskSet.apply_async "
             "in celery v1.2.0"))
         return self.apply_async(*args, **kwargs)