Fixes class super for python 2.7

This commit is contained in:
Ilan Steemers
2015-09-02 19:50:04 +02:00
parent 8ce441bed5
commit 46ae50043c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ from boto.sqs.message import Message
class Sqs(Broker):
def __init__(self, list_key=Conf.PREFIX):
super().__init__(list_key)
super(Sqs, self).__init__(list_key)
self.queue = self.get_queue()
def enqueue(self, task):
+1 -1
View File
@@ -11,7 +11,7 @@ except ImportError:
class Redis(Broker):
def __init__(self, list_key=Conf.PREFIX):
super().__init__(list_key='django_q:{}:q'.format(list_key))
super(Redis, self).__init__(list_key='django_q:{}:q'.format(list_key))
def enqueue(self, task):
return self.connection.rpush(self.list_key, task)