py3 hashlib error
In python3 str isn't a valid type to pass to hashlib functions. Change-Id: I64d214088bf89a81ae1eff2ce5f9b81785f82546
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user