summaryrefslogtreecommitdiff
path: root/paste/auth
diff options
context:
space:
mode:
authorCyril Roelandt <cyril.roelandt@enovance.com>2014-03-18 10:58:51 +0100
committerCyril Roelandt <cyril.roelandt@enovance.com>2014-03-18 10:58:51 +0100
commit4bdb495a250dc8b44309a8d158fb60a8106e3287 (patch)
treee3013ac40325c731596f4ffd5b1286edf0994c55 /paste/auth
parent286427374d678bf82491f97fbc2b422d30791b90 (diff)
downloadpaste-4bdb495a250dc8b44309a8d158fb60a8106e3287.tar.gz
Python 3: Add b prefix to literal binary strings
Diffstat (limited to 'paste/auth')
-rw-r--r--paste/auth/cookie.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/auth/cookie.py b/paste/auth/cookie.py
index 3593804..c636824 100644
--- a/paste/auth/cookie.py
+++ b/paste/auth/cookie.py
@@ -52,7 +52,7 @@ from paste.request import get_cookies
def make_time(value):
return time.strftime("%Y%m%d%H%M", time.gmtime(value))
-_signature_size = len(hmac.new('x', 'x', sha1).digest())
+_signature_size = len(hmac.new(b'x', b'x', sha1).digest())
_header_size = _signature_size + len(make_time(time.time()))
# @@: Should this be using urllib.quote?