mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-19 03:25:54 -04:00
[lldb/Util] Fix Python 3 incompatibility in lldb-repro
This fixes: TypeError: Unicode-objects must be encoded before hashing
This commit is contained in:
parent
a2137d6e09
commit
d92f77606a
@ -33,8 +33,8 @@ def main():
|
||||
# Compute an MD5 hash based on the input arguments and the current working
|
||||
# directory.
|
||||
h = hashlib.md5()
|
||||
h.update(' '.join(sys.argv[2:]))
|
||||
h.update(os.getcwd())
|
||||
h.update(' '.join(sys.argv[2:]).encode('utf-8'))
|
||||
h.update(os.getcwd().encode('utf-8'))
|
||||
input_hash = h.hexdigest()
|
||||
|
||||
# Use the hash to "uniquely" identify a reproducer path.
|
||||
|
Loading…
Reference in New Issue
Block a user