summaryrefslogtreecommitdiff
path: root/memcache.py
diff options
context:
space:
mode:
authorSean Reifschneider <jafo00@gmail.com>2016-05-27 10:35:24 -0600
committerSean Reifschneider <jafo00@gmail.com>2016-05-27 10:35:24 -0600
commitf7d081e534231288728c6b3f985f02305bb96e5a (patch)
tree016dc480cbe48b3813ab0b0a8ca976e2760ec880 /memcache.py
parent120a16d86e4795a95efc6c9b4a50f10c992d3972 (diff)
parent8cc37bb9c61cb11d27fbdaf132e94d75a3a4a719 (diff)
downloadpython-memcached-f7d081e534231288728c6b3f985f02305bb96e5a.tar.gz
Merge pull request #91 from bartTC/master
Python3: `get_stats` function fails due to Bytestring encoding errors
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 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)