summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'redis/client.py')
-rwxr-xr-xredis/client.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/redis/client.py b/redis/client.py
index 8ebcece..fe697f6 100755
--- a/redis/client.py
+++ b/redis/client.py
@@ -3026,7 +3026,12 @@ class Redis(object):
Set key to value within hash ``name`` for each corresponding
key and value from the ``mapping`` dict.
"""
- warnings.warn(DeprecationWarning('Use hset'))
+ warnings.warn(
+ '%s.hmset() is deprecated. Use %s.hset() instead.'
+ % (self.__class__.__name__, self.__class__.__name__),
+ DeprecationWarning,
+ stacklevel=2,
+ )
if not mapping:
raise DataError("'hmset' with 'mapping' of length 0")
items = []