change sign_t return from bytes to str. (#480)

pull/485/merge
bdlzhx 2017-06-06 11:22:29 +08:00 committed by 老广
parent cf07a6ebb7
commit b680a42425
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ class Signer(object):
def sign_t(self, value, expires_in=3600):
s = TimedJSONWebSignatureSerializer(self.secret_key, expires_in=expires_in)
return s.dumps(value)
return str(s.dumps(value), encoding="utf8")
def unsign_t(self, value):
s = TimedJSONWebSignatureSerializer(self.secret_key)