summaryrefslogtreecommitdiff
path: root/dev-python/paste/files/paste-1.7.5.1-hmac.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/paste/files/paste-1.7.5.1-hmac.patch')
-rw-r--r--dev-python/paste/files/paste-1.7.5.1-hmac.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/dev-python/paste/files/paste-1.7.5.1-hmac.patch b/dev-python/paste/files/paste-1.7.5.1-hmac.patch
new file mode 100644
index 00000000000..c86d0f977cf
--- /dev/null
+++ b/dev-python/paste/files/paste-1.7.5.1-hmac.patch
@@ -0,0 +1,11 @@
+--- a/paste/auth/cookie.py
++++ b/paste/auth/cookie.py
+@@ -52,7 +52,7 @@
+
+ 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?