Explorar el Código

No need for ternary operation in canvas._maybe_group

Omar Khan hace 12 años
padre
commit
983e920887
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      celery/canvas.py

+ 1 - 1
celery/canvas.py

@@ -384,7 +384,7 @@ def _maybe_group(tasks):
     if isinstance(tasks, group):
         tasks = list(tasks.tasks)
     else:
-        tasks = regen(tasks if is_list(tasks) else tasks)
+        tasks = regen(tasks)
     return tasks