Fix typo.
authorFredrik Tolf <fredrik@dolda2000.com>
Thu, 3 Apr 2014 04:18:01 +0000 (06:18 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Thu, 3 Apr 2014 04:18:01 +0000 (06:18 +0200)
wrw/session.py

index e9425c3..f9b4a3f 100644 (file)
@@ -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())