diff options
author | andy <andy@whiskeymedia.com> | 2012-08-23 20:43:19 -0700 |
---|---|---|
committer | andy <andy@whiskeymedia.com> | 2012-08-23 20:43:19 -0700 |
commit | c9da5fa6cca93f1187ef860c3ec7cdfc9774ca49 (patch) | |
tree | a50c70a584d3d3329e504bf5af891260657aaa1b /redis/connection.py | |
parent | 6a3875b9d964189f84c4509234e4d12db4222d89 (diff) | |
download | redis-py-c9da5fa6cca93f1187ef860c3ec7cdfc9774ca49.tar.gz |
fixed a Python3 incompatibiltiy in the previous commit
Diffstat (limited to 'redis/connection.py')
-rw-r--r-- | redis/connection.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/redis/connection.py b/redis/connection.py index f2b164e..0322feb 100644 --- a/redis/connection.py +++ b/redis/connection.py @@ -110,7 +110,8 @@ class PythonParser(object): # server returned an error if byte == '-': - if nativestr(response).startswith('LOADING '): + response = nativestr(response) + if response.startswith('LOADING '): # if we're loading the dataset into memory, kill the socket # so we re-initialize (and re-SELECT) next time. raise ConnectionError("Redis is loading data into memory") |