mirror of https://github.com/scrapy/scrapy.git
PY3: fixed scrapy.utils.defer
This commit is contained in:
parent
c53d6d7460
commit
82304c4fae
|
|
@ -61,7 +61,7 @@ def parallel(iterable, count, callable, *args, **named):
|
|||
"""
|
||||
coop = task.Cooperator()
|
||||
work = (callable(elem, *args, **named) for elem in iterable)
|
||||
return defer.DeferredList([coop.coiterate(work) for i in xrange(count)])
|
||||
return defer.DeferredList([coop.coiterate(work) for i in range(count)])
|
||||
|
||||
def process_chain(callbacks, input, *a, **kw):
|
||||
"""Return a Deferred built by chaining the given callbacks"""
|
||||
|
|
|
|||
Loading…
Reference in New Issue