summaryrefslogtreecommitdiff
path: root/pymemcache
diff options
context:
space:
mode:
authorCharles Gordon <charles.gordon@gmail.com>2016-03-18 10:24:27 -0700
committerCharles Gordon <charles.gordon@gmail.com>2016-03-18 10:24:27 -0700
commit0cf26f86ea5dc60c70850fb99b5633d0f6638247 (patch)
tree0c3df45f7faf567cf5b6dcb579aa09c6422f312c /pymemcache
parent4a733f4d87e08aaac990b88eee2db2517f355bea (diff)
parentaac032419e94b5f71e763c130d54d4b6f36caa17 (diff)
downloadpymemcache-0cf26f86ea5dc60c70850fb99b5633d0f6638247.tar.gz
Merge pull request #93 from RobertDeRose/support-non-standard-stats
Handle stats not conforming to the triplet format
Diffstat (limited to 'pymemcache')
-rw-r--r--pymemcache/client/base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pymemcache/client/base.py b/pymemcache/client/base.py
index 4eab540..ad845d1 100644
--- a/pymemcache/client/base.py
+++ b/pymemcache/client/base.py
@@ -699,8 +699,8 @@ class Client(object):
else:
result[key] = value
elif name == b'stats' and line.startswith(b'STAT'):
- _, key, value = line.split()
- result[key] = value
+ key_value = line.split()
+ result[key_value[1]] = key_value[2]
else:
raise MemcacheUnknownError(line[:32])
except Exception: