# HG changeset patch # User Mads Kiilerich # Date 2019-11-23 15:55:40 # Node ID 096ce7327aad51088f0da344a55bdf3dd83e5609 # Parent 1a409593f352a64d311792e9bfc7b9d33152cec5 lib: drop redundant json.dumps encoding=utf8 Not supported in py3 - json is by definition(?) always UTF-8. diff --git a/kallithea/lib/base.py b/kallithea/lib/base.py --- a/kallithea/lib/base.py +++ b/kallithea/lib/base.py @@ -628,7 +628,7 @@ def jsonify(func, *args, **kwargs): warnings.warn(msg, Warning, 2) log.warning(msg) log.debug("Returning JSON wrapped action output") - return json.dumps(data, encoding='utf-8') + return json.dumps(data) @decorator.decorator def IfSshEnabled(func, *args, **kwargs):