diff options
-rw-r--r-- | memcache.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/memcache.py b/memcache.py index db2c0b1..86aed82 100644 --- a/memcache.py +++ b/memcache.py @@ -338,9 +338,9 @@ class Client(threading.local): readline = s.readline while 1: line = readline() - if not line or line.strip() == 'END': + if not line or line.decode('ascii').strip() == 'END': break - stats = line.split(' ', 2) + stats = line.decode('ascii').split(' ', 2) serverData[stats[1]] = stats[2] return(data) |