From 42a07efff31696f5de26b5973b0d91a9ba7c1050 Mon Sep 17 00:00:00 2001 From: Grey Li Date: Wed, 7 Feb 2018 15:25:42 +0800 Subject: [PATCH] Remove tojson filter --- flask/json/__init__.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/flask/json/__init__.py b/flask/json/__init__.py index 6a10b737..d3d8439d 100644 --- a/flask/json/__init__.py +++ b/flask/json/__init__.py @@ -267,7 +267,3 @@ def jsonify(*args, **kwargs): dumps(data, indent=indent, separators=separators) + '\n', mimetype=current_app.config['JSONIFY_MIMETYPE'] ) - - -def tojson_filter(obj, **kwargs): - return Markup(htmlsafe_dumps(obj, **kwargs))