Save the session-key as a unicode string in the db

The session-key should be saved as a string, not a byte string.
This commit is contained in:
Hong Xu 2015-02-25 00:21:55 -08:00
parent e3dedef7ed
commit 21e91efbf9

View File

@ -7,7 +7,7 @@ import binascii
class Preferences:
defaults = [
("session-key", binascii.b2a_hex(os.urandom(24))),
("session-key", binascii.b2a_hex(os.urandom(24)).decode('utf-8')),
]
def __init__(self, db):