diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2017-11-02 06:30:07 -0700 |
---|---|---|
committer | Jon Dufresne <jon.dufresne@gmail.com> | 2018-11-03 03:21:49 -0700 |
commit | a64c2cbf10ce895f34a961e4d25667294c3e97c3 (patch) | |
tree | 911c7415b893befe4496295547ce5ff70b4f1fca | |
parent | 8726ceb1a927931e3163c0f9465caab6aea87f47 (diff) | |
download | redis-py-a64c2cbf10ce895f34a961e4d25667294c3e97c3.tar.gz |
Pass iterator to tuple() without coercing to a list
-rwxr-xr-x | redis/connection.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/redis/connection.py b/redis/connection.py index 0d9e610..ea65ff0 100755 --- a/redis/connection.py +++ b/redis/connection.py @@ -639,8 +639,8 @@ class Connection(object): # to prevent them from being encoded. command = args[0] if ' ' in command: - args = tuple([Token.get_token(s) - for s in command.split()]) + args[1:] + args = tuple(Token.get_token(s) + for s in command.split()) + args[1:] else: args = (Token.get_token(command),) + args[1:] |