summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2010-04-27 19:22:47 -0700
committerAndy McCurdy <andy@andymccurdy.com>2010-04-27 19:22:47 -0700
commitc3d531e9d279d0d3532267b1d1887ac8e68f5a43 (patch)
tree53c57a951e243bde0bac7cb709c11b8b388218c6 /redis/client.py
parent7aef2c8202746b5966526dcfdd9f531dcf9096d8 (diff)
downloadredis-py-c3d531e9d279d0d3532267b1d1887ac8e68f5a43.tar.gz
docs and param name consistency cleanup
Diffstat (limited to 'redis/client.py')
-rw-r--r--redis/client.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/redis/client.py b/redis/client.py
index 05fc4b8..34b55dd 100644
--- a/redis/client.py
+++ b/redis/client.py
@@ -1017,8 +1017,11 @@ class Redis(threading.local):
"""
return self.execute_command('HSET', name, key, value)
- def hmset(self, key, mapping):
- "Sets each key in the ``mapping`` dict to its corresponding value"
+ def hmset(self, name, mapping):
+ """
+ Sets each key in the ``mapping`` dict to its corresponding value
+ in the hash ``name``
+ """
items = []
[items.extend(pair) for pair in mapping.iteritems()]
return self.execute_command('HMSET', key, *items)
@@ -1134,7 +1137,7 @@ class Pipeline(Redis):
response = self.parse_response('_', catch_errors=True)
if len(response) != len(commands):
raise ResponseError("Wrong number of response items from "
- "pipline execution")
+ "pipeline execution")
# Run any callbacks for the commands run in the pipeline
data = []
for r, cmd in zip(response, commands):