The latest python-memcached now returns results as binary, so the result needs to be decoded.
This commit is contained in:
parent
ac4945011b
commit
4c4bfeb1b9
2
lg.py
2
lg.py
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user