From ff2f3567addabb723ed9a9bd0f739fa81910d88a Mon Sep 17 00:00:00 2001 From: Andy McCurdy Date: Mon, 16 Jun 2014 16:29:37 -0700 Subject: [PATCH] fix python3 compat --- redis/connection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redis/connection.py b/redis/connection.py index 2123b335bb..f9efa7b4e8 100755 --- a/redis/connection.py +++ b/redis/connection.py @@ -601,14 +601,14 @@ def pack_command(self, *args): def pack_commands(self, commands): "Pack multiple commands into the Redis protocol" pieces = [] - buff = '' + buff = SYM_EMPTY for cmd in commands: packed = self.pack_command(*cmd)[0] buff = SYM_EMPTY.join((buff, packed)) if len(buff) > 6000: pieces.append(buff) - buff = '' + buff = SYM_EMPTY if buff: pieces.append(buff)