Explorar el Código

Don't use `map` here - it doesn't make a list on Python 3.

Ionel Cristian Mărieș hace 9 años
padre
commit
cae8bf96c0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      celery/canvas.py

+ 1 - 1
celery/canvas.py

@@ -607,7 +607,7 @@ def _maybe_group(tasks):
     elif isinstance(tasks, Signature):
         tasks = [tasks]
     else:
-        tasks = map(signature, regen(tasks))
+        tasks = [signature(t) for t in regen(tasks)]
     return tasks