py3 hashlib error

In python3 str isn't a valid type to pass to hashlib functions.

Change-Id: I64d214088bf89a81ae1eff2ce5f9b81785f82546
This commit is contained in:
Clint Byrum
2017-05-10 15:47:41 -04:00
parent deaf1fc564
commit c0923d5011

View File

@@ -90,7 +90,7 @@ def repack_repo(path):
def random_sha1():
return hashlib.sha1(str(random.random())).hexdigest()
return hashlib.sha1(str(random.random()).encode('ascii')).hexdigest()
def iterate_timeout(max_seconds, purpose):