summaryrefslogtreecommitdiff
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
commitc499fc38decc2573c64af417b48f3c220259d2a3 (patch)
treee3013ac40325c731596f4ffd5b1286edf0994c55
parentb98bd2c45466af763eb13f6b0c272c75d96ff85d (diff)
downloadpaste-git-c499fc38decc2573c64af417b48f3c220259d2a3.tar.gz
Python 3: Add b prefix to literal binary strings
-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?