Dolda2000 GitWeb
/
wrw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
425ebac
)
Apparently binascii.b2a_* returns bytes.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Thu, 3 Apr 2014 04:16:59 +0000
(06:16 +0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Thu, 3 Apr 2014 04:16:59 +0000
(06:16 +0200)
wrw/session.py
patch
|
blob
|
blame
|
history
diff --git
a/wrw/session.py
b/wrw/session.py
index
3185b0b
..
e9425c3
100644
(file)
--- 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))
+ self.id = binascii.b2a_hex(gennonce(16))
.encode("us-ascii")
self.dict = {}
self.lock = lock
self.ctime = self.atime = self.mtime = int(time.time())