Merge pull request #21416 from edx/awais786/BOM-354

BOM-354
This commit is contained in:
Awais Qureshi
2019-08-26 10:57:58 +05:00
committed by GitHub

View File

@@ -284,4 +284,4 @@ def hash_grading_policy(grading_policy):
separators=(',', ':'), # Remove spaces from separators for more compact representation
sort_keys=True,
)
return b64encode(sha1(ordered_policy).digest())
return b64encode(sha1(ordered_policy.encode("utf-8")).digest())