Procházet zdrojové kódy

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

Ionel Cristian Mărieș před 9 roky
rodič
revize
cae8bf96c0
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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