From b255359720aa4f28aa504184df88367731794e5a Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Thu, 3 Apr 2014 06:18:01 +0200 Subject: [PATCH] Fix typo. --- wrw/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrw/session.py b/wrw/session.py index e9425c3..f9b4a3f 100644 --- a/wrw/session.py +++ b/wrw/session.py @@ -8,7 +8,7 @@ def gennonce(length): class session(object): def __init__(self, lock, expire=86400 * 7): - self.id = binascii.b2a_hex(gennonce(16)).encode("us-ascii") + self.id = binascii.b2a_hex(gennonce(16)).decode("us-ascii") self.dict = {} self.lock = lock self.ctime = self.atime = self.mtime = int(time.time()) -- 2.11.0