diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2014-08-14 10:28:39 -0700 |
---|---|---|
committer | Andy McCurdy <andy@andymccurdy.com> | 2014-08-14 10:28:39 -0700 |
commit | dcb524ea16087a8fd77c702a457e7f24d33899c9 (patch) | |
tree | 0dd94177840c02a270afe69a6c9ace9d15e47280 /redis/connection.py | |
parent | 4d0b0afe9c9a431ed50c3e9fb95a0aa88b1f1038 (diff) | |
download | redis-py-dcb524ea16087a8fd77c702a457e7f24d33899c9.tar.gz |
pep8
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): |