From 914b57f603be5f5354f722341a21ee81731b08a8 Mon Sep 17 00:00:00 2001 From: Sei Lisa Date: Thu, 18 Apr 2024 19:36:53 +0200 Subject: [PATCH] Fix llComputeHash on Python 3 --- lslopt/lslbasefuncs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lslopt/lslbasefuncs.py b/lslopt/lslbasefuncs.py index d3e78e0..4bdf902 100644 --- a/lslopt/lslbasefuncs.py +++ b/lslopt/lslbasefuncs.py @@ -1188,7 +1188,7 @@ def llComputeHash(data, alg): hash = InternalGetAlg(u'sha1') hash.update(data) ret += hash.hexdigest() - return ret.decode('utf8') + return str2u(ret) def llCos(f): f = ff(f)