summaryrefslogtreecommitdiff
path: root/memcache.py
diff options
context:
space:
mode:
authorMartin Mahner <martin@mahner.org>2016-03-19 13:49:02 +0100
committerMartin Mahner <martin@mahner.org>2016-03-19 14:06:53 +0100
commit8cc37bb9c61cb11d27fbdaf132e94d75a3a4a719 (patch)
treee50c1c14a6315f9c526a0011333debfbef19cf4f /memcache.py
parent37f55ca4ad94ca4ade30d6be28e1facb79ac3182 (diff)
downloadpython-memcached-8cc37bb9c61cb11d27fbdaf132e94d75a3a4a719.tar.gz
Fixed Python3 Bytestring decoding error in get_stats.
Diffstat (limited to 'memcache.py')
-rw-r--r--memcache.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/memcache.py b/memcache.py
index 5d97714..d69d0cc 100644
--- a/memcache.py
+++ b/memcache.py
@@ -333,9 +333,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)