]> git.dolda2000.com Git - wrw.git/commitdiff
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 e9425c38b2fe013b2ecdf2535425defee3c28cb3..f9b4a3f446b9f7fd704834672b8b465f69f1c44a 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())