diff options
author | Cyril Roelandt <cyril.roelandt@enovance.com> | 2014-03-18 10:58:51 +0100 |
---|---|---|
committer | Cyril Roelandt <cyril.roelandt@enovance.com> | 2014-03-18 10:58:51 +0100 |
commit | 4bdb495a250dc8b44309a8d158fb60a8106e3287 (patch) | |
tree | e3013ac40325c731596f4ffd5b1286edf0994c55 /paste/auth | |
parent | 286427374d678bf82491f97fbc2b422d30791b90 (diff) | |
download | paste-4bdb495a250dc8b44309a8d158fb60a8106e3287.tar.gz |
Python 3: Add b prefix to literal binary strings
Diffstat (limited to 'paste/auth')
-rw-r--r-- | paste/auth/cookie.py | 2 |
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? |