Commit ada6ae5b authored by Bram Schoenmakers's avatar Bram Schoenmakers

Unicode-objects must be encoded before hashing.

parent 45b1ace2
......@@ -68,7 +68,7 @@ def hash_list_values(p_list, p_key=lambda i: i):
# hash
hasher = sha1()
hasher.update(raw_value)
hasher.update(raw_value.encode('utf-8'))
hash_value = int(hasher.hexdigest(), 16) % size
# resolve possible collisions
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment