Replaces list.copy with a slice for python 2.7

This commit is contained in:
Ilan Steemers
2015-10-17 18:59:17 +02:00
parent 2df29b908c
commit 083715f9bd

View File

@@ -456,7 +456,7 @@ class Chain(object):
Start queueing the chain to the worker cluster
:return: the chain's group id
"""
self.group = async_chain(chain=self.chain.copy(), group=self.group, cached=self.cached, sync=self.sync,
self.group = async_chain(chain=self.chain[:], group=self.group, cached=self.cached, sync=self.sync,
broker=self.broker)
self.started = True
return self.group