Merge pull request #93 from RobertDeRose/support-non-standard-stats

Handle stats not conforming to the triplet format
This commit is contained in:
Charles Gordon
2016-03-18 10:24:27 -07:00

View File

@@ -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: