diff options
author | Craig Hawco <craig.hawco@gmail.com> | 2010-09-03 12:57:50 -0400 |
---|---|---|
committer | Craig Hawco <craig.hawco@gmail.com> | 2010-09-03 12:57:50 -0400 |
commit | ec71ea0508a4f9c34a31a728008ae6a4adbc706c (patch) | |
tree | 1b1252407841190160377a9a8a90308112549f09 /redis/client.py | |
parent | 3e92870bec9bbaddfd786c5a4934c84c8a7f3084 (diff) | |
download | redis-py-ec71ea0508a4f9c34a31a728008ae6a4adbc706c.tar.gz |
Use the correct number of parameters for the UNWATCH command.
Diffstat (limited to 'redis/client.py')
-rw-r--r-- | redis/client.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/redis/client.py b/redis/client.py index 893942a..74b1d64 100644 --- a/redis/client.py +++ b/redis/client.py @@ -692,14 +692,14 @@ class Redis(threading.local): return self.execute_command('WATCH', name) - def unwatch(self, name): + def unwatch(self): """ Unwatches the value at key ``name``, or None of the key doesn't exist """ if self.subscribed: raise RedisError("Can't call 'unwatch' from a pipeline'") - return self.execute_command('UNWATCH', name) + return self.execute_command('UNWATCH') #### LIST COMMANDS #### def blpop(self, keys, timeout=0): |