Fix bytes decoding

master
Marko Semet 2020-01-21 00:57:59 +01:00
parent ff28e80769
commit 2d655a6c19
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ class ModuleLoader():
for i in self.get_depends(arch, use_local=use_local, verbose=verbose):
tmp = set()
for j in i:
tmp = tmp.union(set(map(lambda x: x.encode("utf-8").lower(), commit_hashes(j, use_local=use_local, verbose=verbose))))
tmp = tmp.union(set(map(lambda x: x.decode("utf-8").lower(), commit_hashes(j, use_local=use_local, verbose=verbose))))
base_hashes.append(sorted(tmp))
result = list(map(lambda x: function(b"\x00".join(x) + b"\x00" + sourceHash), itertools.product(*base_hashes)))
if verbose: