From 2d655a6c19c7e1b714c0b0ef1c3a572754d02d1b Mon Sep 17 00:00:00 2001 From: Marko Semet Date: Tue, 21 Jan 2020 00:57:59 +0100 Subject: [PATCH] Fix bytes decoding --- hash_modules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hash_modules.py b/hash_modules.py index 88c39bc..b9b6ffe 100755 --- a/hash_modules.py +++ b/hash_modules.py @@ -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: