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 | c499fc38decc2573c64af417b48f3c220259d2a3 (patch) | |
tree | e3013ac40325c731596f4ffd5b1286edf0994c55 | |
parent | b98bd2c45466af763eb13f6b0c272c75d96ff85d (diff) | |
download | paste-git-c499fc38decc2573c64af417b48f3c220259d2a3.tar.gz |
Python 3: Add b prefix to literal binary strings
-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? |