Explorar o código

Merge pull request #1213 from omarkhan/master

Minor quibble: ternary operation in canvas._maybe_group is unnecessary
Ask Solem Hoel %!s(int64=12) %!d(string=hai) anos
pai
achega
3e614db6ed
Modificáronse 1 ficheiros con 1 adicións e 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