未验证 提交 6771359e 编写于 作者: F frostming

fix hash comparison

上级 40b05de4
......@@ -204,5 +204,6 @@ class Project:
algo, hash_value = hash_in_lockfile.split(":")
hasher = hashlib.new(algo)
pyproject_content = tomlkit.dumps(self.pyproject)
content_hash = hasher(pyproject_content.encode("utf-8")).hexdigest()
hasher.update(pyproject_content.encode("utf-8"))
content_hash = hasher.hexdigest()
return content_hash == hash_value
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册