From 083715f9bdcd893bacd14b84323af2e3c8f474cf Mon Sep 17 00:00:00 2001 From: Ilan Steemers Date: Sat, 17 Oct 2015 18:59:17 +0200 Subject: [PATCH] Replaces list.copy with a slice for python 2.7 --- django_q/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_q/tasks.py b/django_q/tasks.py index e572c7c..b36a9ba 100644 --- a/django_q/tasks.py +++ b/django_q/tasks.py @@ -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