diff options
author | Emilio Pozuelo Monfort <pochu@debian.org> | 2020-07-16 13:41:50 +0200 |
---|---|---|
committer | Emilio Pozuelo Monfort <pochu@debian.org> | 2020-07-29 10:20:41 +0200 |
commit | c19f667db5b527b0cbe44e8bb8811f1d2406bb47 (patch) | |
tree | 53996122e8416241f838cd2006762fd289bf299d /lib | |
parent | c69bdbce2383eca35584246bc7113d6d208bce9d (diff) |
bugs.py: encode the string before using the digest
Needed for py3 compatibility.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/python/bugs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/bugs.py b/lib/python/bugs.py index f0ef8c9ab7..63cae22747 100644 --- a/lib/python/bugs.py +++ b/lib/python/bugs.py @@ -407,7 +407,7 @@ def temp_bug_name(bug_number, description): """Build a unique temporary name from the bug number and a truncated hash of the description.""" digest = hashlib.md5() - digest.update(description) + digest.update(description.encode('utf-8')) hexdigest = digest.hexdigest()[0:6].upper() return 'TEMP-%07d-%s' % (bug_number, hexdigest) |