# HG changeset patch # User mcroydon # Date 1273166681 0 # Node ID db368b4d59254e37c6dfb3eb75357f7b4ea2a5bf # Parent 331d96e6a133a99c71a0c77ad058f28d33ab3554 Redis backend: stop using reprecated pop/push and use lpop/lpush which should work in 0.900+. diff -r 331d96e6a133 -r db368b4d5925 queues/backends/redisd.py --- a/queues/backends/redisd.py Fri Apr 30 15:58:07 2010 +0000 +++ b/queues/backends/redisd.py Thu May 06 17:24:41 2010 +0000 @@ -56,13 +56,13 @@ def read(self): try: - return self._connection.pop(self.name) + return self._connection.lpop(self.name) except redis.RedisError, e: raise QueueException, "%s" % e def write(self, value): try: - resp = self._connection.push(self.name, value) + resp = self._connection.lpush(self.name, value) if resp == 'OK': return True else: