Merge pull request #21637 from edx/BOM-446

BOM-446
This commit is contained in:
Aarif
2019-09-13 14:40:36 +05:00
committed by GitHub
6 changed files with 6 additions and 6 deletions

View File

@@ -92,7 +92,7 @@ def hash_resource(resource):
Hash a :class:`web_fragments.fragment.FragmentResource`.
"""
md5 = hashlib.md5()
md5.update(repr(resource))
md5.update(repr(resource).encode('utf-8'))
return md5.hexdigest()