summaryrefslogtreecommitdiff
path: root/pgweb/misc/views.py
diff options
context:
space:
mode:
authorMagnus Hagander2019-01-19 19:12:52 +0000
committerMagnus Hagander2019-01-26 15:19:26 +0000
commitb7f0398c15cd2a060b84d178d7fba60add7a96e7 (patch)
treeba76e99e346943fa3864ad07d79c5f33db18e7a6 /pgweb/misc/views.py
parentc6c0bf1948b0c675d01f54f5698d5fd10c0c557e (diff)
Fix unicode for hashlib operations
Diffstat (limited to 'pgweb/misc/views.py')
-rw-r--r--pgweb/misc/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pgweb/misc/views.py b/pgweb/misc/views.py
index a70b7633..c8d7e2db 100644
--- a/pgweb/misc/views.py
+++ b/pgweb/misc/views.py
@@ -21,7 +21,7 @@ from .forms import SubmitBugForm
def _make_bugs_messageid(bugid):
return "<{0}-{1}@postgresql.org>".format(
bugid,
- hashlib.md5("{0}-{1}".format(os.getpid(), time.time())).hexdigest()[:16],
+ hashlib.md5("{0}-{1}".format(os.getpid(), time.time()).encode('ascii')).hexdigest()[:16],
)