From 4c4bfeb1b95b77ff55a894bc607fb3c4894c621f Mon Sep 17 00:00:00 2001 From: Simon Marsh Date: Thu, 3 Oct 2019 10:28:19 +0100 Subject: [PATCH] The latest python-memcached now returns results as binary, so the result needs to be decoded. --- lg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lg.py b/lg.py index 740ee8b..9cef456 100644 --- a/lg.py +++ b/lg.py @@ -444,7 +444,7 @@ def get_as_name(_as): else: return "AS%s" % (_as) - return "AS%s | %s" % (_as, name) + return "AS%s | %s" % (_as, name.decode('utf-8')) def get_as_number_from_protocol_name(host, proto, protocol):