Below is the dict return from redis. Why the b? How do I get rid of it?
data = r_client.hgetall(key)
{b'test1:r': b'2', b'test2:f': b'2'}
print('test1:r' in data)
False
print(b'test1:r' in data)
True
When I get data from redis how do I get rid of that terrible b?
I mean I have do this to get what I want:
new_data = {}
for key,value in data.items():
new_data[key.decode()] = value.decode()