PY3: fixed scrapy.utils.defer

This commit is contained in:
Mikhail Korobov 2015-07-25 17:48:34 +02:00
parent c53d6d7460
commit 82304c4fae
1 changed files with 1 additions and 1 deletions

View File

@ -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"""