# HG changeset patch # User Mads Kiilerich # Date 1577803157 -3600 # Node ID 502d2fcbe43421e292c674e81ae4c86073c2955e # Parent 89e9aef9b983b076751adf683901f6bbcc328c2f py3: use str instead of safe_unicode when we just need a stable string for everything diff -r 89e9aef9b983 -r 502d2fcbe434 kallithea/lib/caching_query.py --- a/kallithea/lib/caching_query.py Mon Feb 03 16:30:08 2020 +0100 +++ b/kallithea/lib/caching_query.py Tue Dec 31 15:39:17 2019 +0100 @@ -24,7 +24,7 @@ from sqlalchemy.orm.query import Query from sqlalchemy.sql import visitors -from kallithea.lib.utils2 import safe_str, safe_unicode +from kallithea.lib.utils2 import safe_str class CachingQuery(Query): @@ -141,7 +141,7 @@ args = _params_from_query(query) args.append(query._limit) args.append(query._offset) - cache_key = " ".join(safe_unicode(x) for x in args) + cache_key = " ".join(str(x) for x in args) if cache_key is None: raise Exception('Cache key cannot be None')