python 3 fixes

This commit is contained in:
aarif
2019-09-12 17:29:34 +05:00
parent 20dc162375
commit 9301ec38f3
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()