Remove str decode feature from TokenRedis class

This commit is contained in:
Ryan Li 2020-02-16 15:56:14 +08:00 committed by GitHub
parent 4ecff119c4
commit cc8fc489df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -154,6 +154,6 @@ class TokenRedis(object):
if stuff is None: if stuff is None:
return None return None
else: else:
combo = simplejson.loads(stuff.decode("utf-8")) combo = simplejson.loads(stuff)
pair = combo["host"] pair = combo["host"]
return pair.split(':') return pair.split(':')