summaryrefslogtreecommitdiff
path: root/dev-python/paste/files/paste-1.7.5.1-hmac.patch
blob: c86d0f977cfe22c622e5da20a0a86eae64127dc6 (plain)
1
2
3
4
5
6
7
8
9
10
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?