Merge pull request #21601 from edx/awais786/PROD-670

PROD-670
This commit is contained in:
Awais Qureshi
2019-09-10 13:59:35 +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.encode("utf-8")).digest())
return b64encode(sha1(ordered_policy.encode("utf-8")).digest()).decode('utf-8')