summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2018-11-12 22:45:41 -0800
committerAndy McCurdy <andy@andymccurdy.com>2018-11-12 22:45:41 -0800
commit954bc4f28ed2109c40daf93654c210b44f8cf07b (patch)
tree5d68a4333c6417e5ef30963972b565b94c629743
parentd9f2c837920e644d65fbdb7239955e4c9902515b (diff)
downloadredis-py-migrate.tar.gz
Token.get_token for literalsmigrate
-rwxr-xr-xredis/client.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/redis/client.py b/redis/client.py
index 1c8eb76..c255975 100755
--- a/redis/client.py
+++ b/redis/client.py
@@ -915,13 +915,13 @@ class StrictRedis(object):
raise RedisError('MIGRATE requires at least one key')
pieces = []
if copy:
- pieces.append('COPY')
+ pieces.append(Token.get_token('COPY'))
if replace:
- pieces.append('REPLACE')
+ pieces.append(Token.get_token('REPLACE'))
if auth:
- pieces.append('AUTH')
+ pieces.append(Token.get_token('AUTH'))
pieces.append(auth)
- pieces.append('KEYS')
+ pieces.append(Token.get_token('KEYS'))
pieces.extend(keys)
return self.execute_command('MIGRATE', host, port, '', destination_db,
timeout, *pieces)