Skip to content

Commit

Permalink
pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
andymccurdy committed Aug 14, 2014
1 parent 4d0b0af commit dcb524e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion redis/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,8 @@ def read_response(self):
# 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):
Expand Down

0 comments on commit dcb524e

Please sign in to comment.