diff options
Diffstat (limited to 'redis/connection.py')
-rwxr-xr-x | redis/connection.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/redis/connection.py b/redis/connection.py index 4c8b681..1169595 100755 --- a/redis/connection.py +++ b/redis/connection.py @@ -348,7 +348,8 @@ class HiredisParser(BaseParser): # proactively, but not conclusively, check if more data is in the # buffer. if the data received doesn't end with \r\n, there's more. if HIREDIS_USE_BYTE_BUFFER: - if bufflen > 2 and self._buffer[bufflen - 2:bufflen] != SYM_CRLF: + if bufflen > 2 and \ + self._buffer[bufflen - 2:bufflen] != SYM_CRLF: continue else: if not buffer.endswith(SYM_CRLF): |