Skip to content

Commit

Permalink
fix python3 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
andymccurdy committed Jun 16, 2014
1 parent dffc6f9 commit ff2f356
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redis/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ff2f356

Please sign in to comment.