The latest python-memcached now returns results as binary, so the result needs to be decoded.

This commit is contained in:
Simon Marsh 2019-10-03 10:28:19 +01:00
parent ac4945011b
commit 4c4bfeb1b9
Signed by: burble
GPG Key ID: 7B9FE8780CFB6593

2
lg.py
View File

@ -444,7 +444,7 @@ def get_as_name(_as):
else: else:
return "AS%s" % (_as) 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): def get_as_number_from_protocol_name(host, proto, protocol):