summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
authorandymccurdy <andy@andymccurdy.com>2010-02-17 01:00:10 -0800
committerandymccurdy <andy@andymccurdy.com>2010-02-17 01:00:10 -0800
commit223acf1fdcdca8bc6551919ca39c2fbeb089bd75 (patch)
tree379f57ab7a716b4283f13d251f1198113fbaf956 /redis/client.py
parent5ce4a90fe42d20e180a9c28ddfa41dd09cf77aa4 (diff)
downloadredis-py-223acf1fdcdca8bc6551919ca39c2fbeb089bd75.tar.gz
Redis.pop() is deprecated like Redis.push().
Added a number of tests for the SORT command
Diffstat (limited to 'redis/client.py')
-rw-r--r--redis/client.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/redis/client.py b/redis/client.py
index 448edf6..989d30b 100644
--- a/redis/client.py
+++ b/redis/client.py
@@ -627,6 +627,9 @@ class Redis(object):
* This method has been deprecated,
use Redis.lpop or Redis.rpop instead *
"""
+ warnings.warn(DeprecationWarning(
+ "Redis.pop has been deprecated, "
+ "use Redis.lpop or Redis.rpop instead"))
if tail:
return self.rpop(name)
return self.lpop(name)