Преглед изворни кода

apollo13 does not allow the use of starmaps :(

Ask Solem пре 15 година
родитељ
комит
4a1a782eb3
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      celery/bin/camqadm.py

+ 2 - 2
celery/bin/camqadm.py

@@ -16,7 +16,6 @@ import shlex
 import pprint
 import readline
 import optparse
-from itertools import starmap
 
 from celery.utils import info
 from celery.messaging import establish_connection
@@ -91,7 +90,8 @@ class Spec(object):
             ("pobox", True)
 
         """
-        return tuple(starmap(self.coerce, enumerate(arglist)))
+        return tuple(self.coerce(index, value)
+                for index, value in enumerate(arglist))
 
 
 class AMQShell(cmd.Cmd):