Skip to content

Commit

Permalink
Merge pull request #10 from flow180/py3
Browse files Browse the repository at this point in the history
Add python 3 support
  • Loading branch information
iurisilvio committed Mar 26, 2016
2 parents 34ec1cd + c91c734 commit 142bd22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_sqlalchemy_cache/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def key_from_query(self, qualifier=None):
for k in sorted(params):
values.append(repr(params[k]))
key = u" ".join(values)
return md5(key).hexdigest()
return md5(key.encode('utf8')).hexdigest()


class _CacheableMapperOption(MapperOption):
Expand Down

0 comments on commit 142bd22

Please sign in to comment.